corrected python carriage return bug