Example of client-server socket implementation in Python