Fix Python shell initialization when custom filters are defined
Opening the Python shell would generate a warning when reading custom filters proxies due to a failing proxy name search.
Backport commits from: !5345 (comment 1142528)
Edited by Nicolas Vuaille