Simplify getting tasks
Switch from http.client to requests
Improve docstring slightly
Do not assign to agents that are offline/disabled