Fixed the python3 types. The builtin basestring abstract type was removed