add spacing and fix minor python issues.