We've probably changed the code enough to drop the reference to the original gist. E.g. using the request library instead of httplib, etc. Also we should rearrange the code to our conventions. Move the import of requests and base64 up with the other imports.