elliptic_pi returns incorrect values for some complex values compared to what mpmath and Wolfram Alpha returns. This is primarily due to using Carlson's Rj function to evaluate eliptic_pi. The problem is the duplication formula for Rj is only valid over certain ranges of the parameters.
Fixed in [c79180]. Basically quadrature is used along with a shifted Rj function to cover these areas. This is what mpmath does.
Related
Commit: [c79180]