Merge pull request #128 from slon/master

Style fixes for flake8 
Fix infinite loop in Client.logs(stream=True) caused by connection close.