Create ps_mem.py