Perl script to create standard python file