[python] Convert a python 'type' object to a string