generate import of python modules first