Merge pull request #684 from tirkarthi/fix-threading Set daemon attribute instead of using setDaemon method that was deprecated in Python 3.10