Python PRT file writer.