this can be simply:

    if ms_ipv6: