moved functions from analyze.py into util.py
extra features\! more cowbell