Python metaclass to keep track of all the methods called in time