hardcode act_anat_prepare_freesurfer, improve compatibility to python 3