echo server in python