Added get_nodes and a couple pep8 fixes

I wanted to get the stats for a node out with pyrabbit and it was missing get_nodes() so I added it.