Adapted setup for Py3.