This is the source of the Sage error. I don't understand what is going on. There is no `ext_main` in mpmath 0.17 or 0.18.