fix suppressed deprecation warning

Python's default warning filter suppresses deprecation warnings;
Since we use it, we need to add a filter to stop suppressing it.
This is related to issue #388