A simple Tcp listener written in python