> (I'm starting to have second thoughts about the merger of PA into SGD, with all this special-purpose code in conditional blocks...)

If I remember correctly, we inherit a lot of useful code on the pure Python side, not so much on the Cython side.