interprocess communication in python,listener.close()