Make python-mode customizations more general for all programming modes