a more pythonic way of doing stuff in nodes

not a major change, just list comperhansion instead of
for loops and appending ...
more list comprehansion fun ...
add one more unittest for adding node