Yes. each set of radio buttons will have a function associated with it.

```py
def chooseSex(s):
  return "//input[@name='sex' and @value='%']" % s

def chooseAgeGroup(a):
  return "//input[@name='ag' and @value='%']" % s

click(chooseSex('male'))
click(chooseAg("35-40"))
```

of course if all the functions are similar enough you could even make one function

```py
def make_radio(group, val):
  return "//input[@name='%' and @value='%']" % group, val

chooseSex = partial(make_radio, 'sex')
click(chooseSex('male'))
```