code: def istype(obj, check):
      
      if isinstance(check, tuple):
          for cls in check:
              if type(obj) is cls:
                  return True
          return False
      else:
          return type(obj) is check
docs: Like isinstance(obj, check), but strict.
  
      This won't catch subclasses.