Fix text opening.
Automatic Py3k merge for testing