Refactor and test node/contact.py

### Changelog:
* Implement only `Contact.__eq__`; derive `Contact.__ne__`.
* Implement `Contract.__repr__`; let python derive `Contact.__str__` automatically.
* Remove execute flag.
* Add some unit tests.

See commit logs for more info.