change codecs.open to open