add option of getting control file in 'py' file