Taki weekendowy żarcik:

#!/usr/bin/env python
import random

class Foo(random.choice([int, str, unicode, Exception])):
    pass

f = Foo('1')
print `f`