Fix TypeError on typename

Without casting to a string, in Python 2.7 you get:

> TypeError: unsupported operand type(s) for +: 'property' and 'str'
More TypeError fixes
Merge pull request #5 from symroe/patch-1

Fix TypeError on typename