I am using python3 without any tailored library for some simple arithmetic. The operation that dominates computational efficiency is a multiplication of many 2048 bit values:
length=len(array)
res=1
for x in range(length):
res=(res*int(array[x]))
ret=res%n2
To give you an insight it takes ~3940 seconds to make 10000 multiplications moduli a number for every multiplication for an:
Intel Core i5 CPU M 560 @ 2.67GHz × 4 with 8GB of memory, running Ubuntu 12.04 32bit
machine.
Would it make sense to boost it up using a library like gmpy2 or there would not be any advantage?