Revert another mistake

Forgot the Python 3 changes to the API.