Use io.open to support python 2.x _and_ python 3