[#1725] Fix PEP8 errors