Maintain module. Improve coverall score to 100%.

### Changelog:
* Fix the documentation of `node/kbucket.py`. It has fallen out of sync since is #652 got merged.
* Improve the coding style a bit.
* Store the `market_id` attribute.
* Add a unit test and bump the code coverage to 100%.