Possible fix for pypy

Idea from https://github.com/cpbotha/nvpy/issues/19#issuecomment-9732016