python3 basestring compatability