Would it be better to have this return a dict rather than a tuple (so you can have named fields in your result)

Or perhaps use http://docs.python.org/2/library/collections.html#collections.namedtuple? (might admittedly be overkill here :) )