Put code into standard Python main program format.