Add support for Python 2/3 interoperability.