move all small util functions to utils.py
improve non-class signature error message
Merge pull request #20 from mrocklin/raise-on-non-class

Raise on non class