>>480
s = "foo"
print isinstance(s, str) #=> True
s = u"foo"
print isinstance(s, unicode) #=> True