Enable deprecation warnings in Python >= 2.7.