[python] improve client

* set closeonexec flag to client socket
* remove bufferevent when async client network error