python tasks for dragonfly