fixed output of python scripts to be pretty and consistent