I\'m digging around with python and networking.
while True: data = sock.recv(10240)
This is definitely listening. But it seems to need
In Python 2.7.x and before, data is already a string. In Python 3.x, data is a bytes object. TO convert bytes to string, use the decode() method. decode() will require a codec argument, like 'utf-8'.
data
decode()