Fix PEP8
Bring test_tasks_base up-to-speed with tasks.base state
Fix test_utils
Import mock as a module in test_base
Fix tests for reset in test_base