Would it make sense to actually intern these strings? Afaik this is just calling PyString_InternInPlace, and it may give a speedup (or possibly not).