Add ram.py for memory usage tracking