Link the main pygd thread to all of the child threads. Closes #38