- port to python 3
- refactor the client to simplify the code
