porting current utils.py over into san fran example

want to keep everything running on the same code, if at all possible
Merge pull request #1 from synthicity/new-units-updates

porting current utils.py over into san fran example