Allow attributes to be set on class methods.
Fix for Python 3
Merge pull request #108 from mdboom/attributes

Allow attributes to be set on class methods.