Work with Python 3 (and PyPy)