Fix for python3 & ipv4-only tor