These dicts can probably be defined on the object and possibly loose the `cython_` prefix.  No need to redefine them each time this method is called.  I would also combine them into a single dict of tuples.  Also, I don't know if this really needs to live on the typesystem, since it doesn't deal with types.  Maybe utils would be a better place for this kind of function.  Just a thought.