How can I choose a custom string representation for a class itself (not instances of the class)?

Consider this class: class foo(object): pass The default string representation looks something like this: >>> str(foo) "<class '__main__.foo'>" How can I make this di...