The return type on pyqi is a dictionary, so I have to create a dictionary (although it only has one element).
Note that I've changed the behavior of the functions, so they no longer return the figures, they are created on the output handler (since the figures are actually a kind of interface). `data` is actually a `namedtuple` (which is better than a dictionary with predefined keys)