Get type name of an object in Python

type(obj).__name__