use gmpy popcount if available