Simple DAG-based job scheduler in Python