bugfix: make it work on PyPy