PlasmaCalcs.tools.multiprocessing.is_task_element

PlasmaCalcs.tools.multiprocessing.is_task_element(x)
returns whether x is a Task-like element.
i.e. x is a callable, or len(x)=0, or x iterable but x[0] not iterable nor callable.