basestring -> strtypes for py3