split process.py into 3 files to separate graphing and stats