title: Python interface to view/modify IP routing rules
body: <p>I'm trying to find a Pythonic interface to what the <code>ip route</code>-style commands do on Linux, similar to how <a href="https://stackoverflow.com/questions/5891779/is-there-a-python-interface-to-iptables"><code>python-iptables</code> is a nice Pythonic interface to <code>iptables</code></a> which directly calls the C library functions, rather than using <code>subprocess</code> to call and parse the output of running <code>/usr/sbin/iptables</code>. Does such a module exist?</p>
  
  <p>If not, what would be the best way (preferably not involving <code>subprocess</code>-parsing) to do the following in Python:</p>
  
  <ul>
  <li>Get the machine's IP routing table</li>
  <li>Add a new rule to the IP routing table</li>
  <li>Delete a rule from the IP routing table?</li>
  </ul>