type function used for class
class Classic: pass class Newstyle(object): pass print type(Classic) print type(Newstyle)