def load(self, path):
        """
        Read Python file from 'path', execute it and return object that stores all variables of the
        Python code as attributes.
        :param path:
        :return:
        """
        with open(path) as f:
            code = f.read()
            exec(code, {}, self.__dict__)
def load ( self , path ) : with open ( path ) as f : code = f . read ( ) exec ( code , { } , self . __dict__ )
Read Python file from 'path', execute it and return object that stores all variables of the
        Python code as attributes.
        :param path:
        :return: