Improve python configuration.