Added arithmetic.py

This pull request adds the arithmetic.py file. It was created for pybitmessage and it is distributed along with their copy of pyelliptic. I'm sending this upstream because I think that the functions are useful, but feel free to decline the pull request if you don't think that it would fit well.