adds new python script for mem usage recording