Import hook for python.