class Some(object): def __str__(self): return "Some class"
sm = Some() print(sm)
print automatically converts argument to string.
print
sm = Some() s = str(sm)