+1 for dicts. numpy does this for things that return diagnostic info as well.