doc: Fixed compatibility issues (Py3, gmpy)