Update thug_instances.py

Creates tasks to be processed by workers.