Fix python configuration.