there's no basestring in python3.