python3 basestring bugfix