Convert text into an executable python script