It is preferred to make argument names more descriptive and self-documenting, so instead of compat=False, ipv4_compatible=False would be more explicit.

Then:
..).ipv6(ipv4_compatible=ipv4_compatible)