Socket communication between python program (server) and C program (client)