KCC: more pep8, using temp variables in places