returned to python script calling mode