fix issue 11760, host entries append to eol, even lines with comments
fix pylint errors to follow salt code conventions
Merge pull request #11761 from sctsang/develop

fix issue 11760, host entries append to eol, even lines with comments