PEP8 nitpick, should be `for sock, chan, th` (spaces).