Update python settings.
Fix cosmetic IDEA inspections.