def bundle_module(self, filepath):
        """Bundle the given file as a python module."""
        filepath = os.path.abspath(filepath)
        rootdir, relpath = os.path.split(filepath)
        self._gather_module("", rootdir, relpath)
        self._perform_pending_import_analysis()
Bundle the given file as a python module.
tools/module_bundler.py