Update memory.py

http://www.codeskulptor.org/#user31_thbWruCFHf_4.py