https://www.area-6.co.uk/tcp-server-demo-python/
TCP server demo in Python