py: Convert (u)int to mp_(u)int_t in mpz, and remove unused function.