Upgraded the python client to support python3