Some fixes for pylint

I am trying to run pylint on nodewatcher code. Please check if code changes I am adding are OK.

*Don't merge. For code review.*