This is almost identical to the version in the ensembl REST API Git repo found here
https://github.com/Ensembl/ensembl-rest/wiki/Example-Python-Client
The differences are that this client works with python 3.
Several other methods have been add to the client.