Change warning filter to inherited class

Using warnings.simplefilter() to enable the DeprecationWarning base
class instead of the derived class has a global affect. Using the
derived class type keeps the desired warning without affecting other
applications.