Refactored create_gist and made modular functions for testing
Refactored create_gist and made modular functions for testing

mreid-moz/jupyter-notebook-gist,mreid-moz/jupyter-notebook-gist,mozilla/jupyter-notebook-gist,mozilla/jupyter-notebook-gist