Changes to support gmpy 1.13 or later, or gmpy2 2.0.0b4 or later.
Improvements to gmpy and gmpy2 fixes.
Remove two extraneous lines from logic to detect gmpy/gmpy2 version.
Merge pull request #1766 from casevh/master

Single patch for gmpy and gmpy2 support.