Improve addinfourl_wrapper for compatibility with older Python versions