Adding support for Python 3.