inphase: better output of python scripts