Move SleepTask, DefinitionTask to their own module, transform PrintTask into LogTask. Get rid of the stupidly named test_tasks.py. Add some more tests.