AWS Lambda and Compression

I've looked online repeatedly for code samples that discuss using gzip compression with AWS Lambdas, specifically with Python code, and I couldn't find any, so I decided to provide this code sample. I'm sure there's things that are missing with it, but this solves my underlying problem and does so in a manner that works well enough.