import imp def run(): mwm = imp.load_dynamic("mwm", "./mwm.so") mwm.run()