added gifcapture and py_mem