python allow generic arith package