Support shared globals.

This way globals defined on a python snippets file can be used in another python snippets file. Should be the same for other languages.