https://medium.com/@jpraychev/building-a-messaging-app-with-python-sockets-and-threads-continue-b7b344ff6e76