PEP8 and updating file open to use with