Assigning each thraed a number.
Using threading.active_count rather than counting completed threads.
Fixing error with traceback in result dict.