fixed typo in client.py
Remove unused imports

--HG--
extra : rebase_source : 8fcd192fc67940728f66f0a8e13d409efc0b9085
Add test to capture desired behavior
Update changelog
Added tag 8.1.2 for changeset 91d6818954a2