Advanced memoizers for Python