An echo server in python