socket script for client and server in python