def istype(obj, check):
if isinstance(check, tuple):<EOL><INDENT>for cls in check:<EOL><INDENT>if type(obj) is cls:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return type(obj) is check<EOL><DEDENT>
Like isinstance(obj, check), but strict.

    This won't catch subclasses.