Python script for Diffusion module

I want to convert 200 Nifti files to .nrrd using Python script in 3dslicer(DWI Convert). And the followed by UKF TRactography.can someone let me know if is there an automated way to do this?