def route_to_python(route, family):
addr, netmask, gateway, metric = route
return [
fixups.addr_to_python(addr, family),
netmask,
fixups.addr_to_python(gateway, family),
socket.ntohl(metric)
]