steve.py: added `@memoized` decorator