Flatten python modules into a single .py file