In my case, however, I am using pyrunfile and don't need to keep the module in Matlab's workspace. Reloading it in Matlab seems to solve the problem, then I just remove the module. My fix is this:
Foo = py.importlib.reload(py.importlib.import_module('Opx_Config'));
clear Foo