python socket by tcp and udp example