title: Resolving a relative url path to its absolute path
body: <p>Is there a library in python that works like this?</p>
  
  <pre><code>&gt;&gt;&gt; resolvePath("http://www.asite.com/folder/currentpage.html", "anotherpage.html")
  'http://www.asite.com/folder/anotherpage.html'
  &gt;&gt;&gt; resolvePath("http://www.asite.com/folder/currentpage.html", "folder2/anotherpage.html")
  'http://www.asite.com/folder/folder2/anotherpage.html'
  &gt;&gt;&gt; resolvePath("http://www.asite.com/folder/currentpage.html", "/folder3/anotherpage.html")
  'http://www.asite.com/folder3/anotherpage.html'
  &gt;&gt;&gt; resolvePath("http://www.asite.com/folder/currentpage.html", "../finalpage.html")
  'http://www.asite.com/finalpage.html'
  </code></pre>