How to Code a simple Socket Server in Python