tasks.py: Little code/doc cleanup