Improved python configuration.