made pypy compatible