Update gmpy2 compatibility to 2.0.0
Merge pull request #1941 from shikil/gmpy2

Update gmpy2 compatibility to 2.0.0