You are using the method_whitelist init parameter of Retry. Version 1.26.0 of urllib3 introduced a replacement init parameter named allowed_methods and at the same time started issuing a DeprecationWarning for using method_whitelist.
The discussion and potentially fix in urllib3/urllib3#2057