DOC str, 2to3 isinstance work around