Update arithmetic.py

generalized functions to accept unknown number of arguments