see bipy/pyqi#185