[FIX] Threadsafe conntection iteration
[FIX] Various python3 quirks