Excuting Python code in Migrate code