fix missing sys import required for PyPy hack