refactor session usage as suggested by sqlalchemy's docs
import .. instead of from .. import ..
consolidate python code into fewer files
do statsgen stuff only if a game completed. remove unneeded statsgen code.