The Python include component extension is .pyinc.
Python include components have similar semantics as their STML
counterparts. All of the variable accessible in the calling documents
namespace will appear in the global namespace of the Python component
being called, and all changes (additions, changes, deletions) to those
variables will appear in the calling document.
Producing output works the same as in top-level python components.