pylint the changes and fix small problems & beautify