a sniproxy implemented by python