Fix get_auth_info_from_url() for all supported python versions