https://github.com/mozilla/mozcommitbuilder/blob/master/mozcommitbuilder/ximport.py
All this does is import a module from a path. Well, this is easy to do in python:
import imp
def load_module(path):
filename = os.path.split(path)[-1]
module = filename.rsplit('.', 1)[0]
return imp.load_source(module, path)