How can I select and deselect nodes via Python?

Thanks.

Layer.addSelection_(Node)

Thanks!

Oh, how about deselecting?

Layer.removeObjectFromSelection_(Node)
or
Layer.removeObjectFromSelectionAtIndex_(Index)

Just for completeness: Layer.clearSelection()