Make setup.py work with Python 3

codecs.open(foo) == open(foo) for text files