refactored to have the `gzip` and `apikey` parameters as parameters to the API methods, rather than module variables`
`