addressing errors with the python file string formats