memoize class for memorizing / caching function calls in python along with reset and reset all memoized functions