PEP-8 modifications following conversion from open to io.open.