I have a python file that contains that is part of a bigger program, that is file is used to generate some of the same data used, However while I would use this program to get the data it's so big, old and undocumented that no one know how it works.
I need to processes the data generated by these files, is there a way to mimic the modules this calls dynamically i.e. I provide an actual method that I am interested in and then I provide a fake response for any method call that hasn't been overridden.
I had an attempt at doing this with overriding the __getattrib__ method but failed horribly (I don't have the source available anymore as it got erased by mistake)