Fixed PEP8 and some ugly constructions
Replaced insufficient string concatenation with joining list
Replaced insufficient string concatenation with joining list
Fixed PEP8 syntax
Merge pull request #7530 from malinoff/fix-ssh-syntax

Fix ssh syntax