def is_task_module(a):
 if (isinstance(a, types.ModuleType) and (a not in _seen)):
  _seen.add(a)
  return True

def is_task_module ( a ) : if ( isinstance ( a , types . ModuleType ) and ( a not in _seen ) ) : _seen . add ( a ) return True
determine if the provided value is a task module .