add __ne__ and __eq__ methods to RSA, DSA, and EC numbers classes

fixes #1449