Switched memory script to python and renamed some files