[#1697] Fix minor PEP8 issues