memory_docker: remove py27ism

Won't compile under python .26 without this. Fixes #590