fix import hook for 2.7