Here a solution if you have multiple default gateways.
import socket, struct
from pprint import pprint as pp
with open("/proc/net/route") as fh:
# skip header
next(fh)
route_list = []
for line in fh:
routes = line.strip().split()
destination = socket.inet_ntoa(struct.pack("<L", int(routes[1], 16)))
if destination != "0.0.0.0":
continue
gateway = socket.inet_ntoa(struct.pack("<L", int(routes[2], 16)))
mask = socket.inet_ntoa(struct.pack("<L", int(routes[7], 16)))
metric = routes[6]
interface = routes[0]
route_table = (destination, gateway, mask, metric, interface)
route_list.append(route_table)
pp(route_list)
#[('0.0.0.0', '0.0.0.0', '0.0.0.0', '0', 'wlan0'),
# ('0.0.0.0', '192.168.225.1', '0.0.0.0', '1024', 'usb0')]