Added `pprint()` to shell variables.
Added `get_nodes()` method to S class.