Python interface to generate file in TRA format