title: UnboundLocalError: local variable 'url_request' referenced before assignment
body: <p>Think I'm going nuts here.</p>
  
  <pre><code>url_request = 0
  
  def somefunction():
      url_request+=1
  
  if __name__ =='__main__':
      somefunction()
  </code></pre>
  
  <p>Gives me the UnboundLocalError. What important concept am I missing here?</p>