Refactor task spawn.py, add tests.
Delete a file.