Added excpetion handling while connecting to zookeeper. Also fixed some ...

...pep8 issues