Extract the PopenQueueMixin, PopenTaskQueueMixin, add pre_run, post_run and task_done hook