simple python socket communication