Python program to wrap a simple C calculator, accurate to 10 integer digits