Probtrack .dot files to CIFTI/NIFTI in python

I saw that cb_workbench has this functionality, but is there any python based implementation that will convert a sparse matrix / .dot file into a CIFTI/NIFTI file?

Haven’t had much luck googling…