Use a gzip helper function to do gzip actions.

Instead of having a shell execute to do gzip and
a python gzip function just switch to using a single
helper gzip python function for both.

Change-Id: Ie8e56f0e1f18fc32fdc2db9f3f3f91eda335308f
Merge "Use a gzip helper function to do gzip actions."