Return tasks as a dict