debugged socket connection from c to python server