Adapted setup for Py3.
Adapted setup for Py3.