def METHOD_NAME(self):
    paths={}
    for key in self.pathNameToButton.keys():
        paths[key]=int(self.pathNameToButton[key].GetValue())
    outputs=list(map(int,self.callbacks['getOutputs']()))
    IOstate = [self.callbacks['getIOstate'](i)
               for i in range(len(outputs))]
    return [paths,outputs,IOstate]