Changes for Python 3 (>= 3.3) compatibility.

Depending on the Python version either io.py or io3.py is imported into the package namespace.