type_name did not work in Python <= 3.2 due the http://bugs.python.org/issue13577