Please replace print with iflogger.info, see https://github.com/nipy/nipype/blob/master/nipype/algorithms/misc.py#L661 for example