Changed format of python output to match rails