Replacing codecs.open() with barbone open()

PEP400 deprecated codecs.open()
some unicode work there, python3 with bkwd compat