def __init__(self, pyfilename=None, **kwargs):
        super(PyFile, self).__init__(**kwargs)
        self.source = Subsection()
        if pyfilename:
            with open(pyfilename) as fp:
                pycode = compile(fp.read(), pyfilename, 'exec')
            six.exec_(pycode, globals(), self.source)
        elif kwargs.get('dict'):
            self.source = kwargs['dict']
Loads configuration from a python source file. Any variables
dataset/ETHPy150Open staffanm/layeredconfig/layeredconfig/pyfile.py/PyFile.__init__