return dict((key, os.path.expandvars(value)) for key, value in settings.
    items())
In the Pyramid web framework, how do I source sensitive settings into development.ini / production.ini from an external file?