Limited warning re-enabling to only DeprecationWarnings.

The previous commit was enabling ImportWarnings too, which caused problems with some specific PYTHONPATH setups.