Switch UDP to python3