Fix BaseUDPTransport in python3.