Do a little hack so python handlers don't need to work with dicts.