Functions to Access Client/Designer/Gateway Contexts

It would be nice to have some supported functions to access the client context, designer context and gateway context in Python.

Something like system.util.getClientContext(), system.util.getDesignerContext(), system.util.getGatewayContext().

The reason is so that modules, projects etc. could be accessed and manipulated in Python more easily.

For example, currently in order to get all the templates in a project Python code will need access to the client context: viewtopic.php?f=70&t=11257