def getDict(self):
    return {'myBool': self.myBool}

def setAllBoolsTrue(self):
    self.myBool = True
for key, value in self.getDict().items():
    setattr(self, key, True)
Python Atom API: how to set atom var when using a dictionary