Fix urllib3 warning filtering on older versions of urllib3