Update memory.py

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