def is_classic_task(tup):
 (name, func) = tup
 try:
  is_classic = (callable(func) and (func not in _internals) and (not name.startswith('_')) and (not (inspect.isclass(func) and issubclass(func, Exception))))
 except (ValueError, TypeError):
  is_classic = False
 return is_classic

def is_classic_task ( tup ) : ( name , func ) = tup try : is_classic = ( callable ( func ) and ( func not in _internals ) and ( not name . startswith ( '_' ) ) and ( not ( inspect . isclass ( func ) and issubclass ( func , Exception ) ) ) ) except ( ValueError , TypeError ) : is_classic = False return is_classic
takes tuple .