So I've created a few python scripts, added them to a toolbox, added the toolbox to a project, then shared the whole thing as a template to Portal. When opening up a new project with that template (From PTL), g_ESRI_variable_1 has been sprinkled everywhere in the embeded py. Why? There's nothing in the toolbox that has anything to do with server-side GP tools, it's just some py to make feature classes and add fields.
Pro 2.2, Ptl 10.5.1