added memory.py for memory reporting OS X style