IndexException whenever using PyArgParser

So, per another thread on here I am actually providing a project name in the constructor of my GatewayScriptModule, because ultimately this script is return project level resources.

In both of these examples I lose that parameter in my constructor, so is there another way to get it other than pulling it out of python locals when the script managers are initialized?

And in regards to Pauls example, when in the concrete getConfig method, you call getConfigImpl, it will end up calling the implementation of it, which calls back to rpc.getConfigImpl, which ends up in an endless loop of implementation calls. At what point do I actually end up reading my project resource through the implemented function?