Fix up bug with import hook on python3/pypy