fix avg of complex

oops, can't avg mod2, duh
basic arith tests done

small improvements to python binding