Yea, I think so. In Python 3 there is no `basestring` anymore, there is just `str` which is unicode. So this is the Python 2 & 3 way to check if something is "sorta like a string".