Fix codecs.open on Py2

Change how codecs.open is import to be more Pythonic. Make the original read use the encoding keyword argument instead of just write. Fixes ascii codec issues.