The args parameter to threading.Thread should be a tuple and you are passing (q) which is not - it is the same as q. 
I guess you wanted a 1-element tuple: you should would write (q,).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With