title: Get current URL in Python
body: <p>How would i get the current URL with Python, </p>
  
  <p>I need to grab the current URL so i can check it for query strings e.g</p>
  
  <pre><code>requested_url = "URL_HERE"
  
  url = urlparse(requested_url)
  
  if url[4]:
      params = dict([part.split('=') for part in url[4].split('&amp;')])
  </code></pre>
  
  <p>also this is running in Google App Engine</p>