I need to have a base class which I will use to inherit other classes which I would like to measure execution time of its functions.
So intead of
Have you checked the "profile" module?
I.e. are you sure you need to implement your own custom framework instead of using the default profiling mechanism for the language?
You could also google for "python hotshot" for a similar solution.