so, that's interesting. My first instinct from my js-powered brain was to do something like:

```
actions = {
    edit: function(user) {
        return true;
    },
    delete: function(user) {
        return user.isGod();
    }
}
```

But that doesn't  end up translating to python. I guess you define all the functions and then build the dict.