consolidate python code into fewer files
do statsgen stuff only if a game completed. remove unneeded statsgen code.