title: Pythonic way of retry running a function
body: <p>How a Python Professinal would retry running a function that will request a web service(the webservice sometimes fails)</p>
  
  <p>The function:</p>
  
  <pre><code>def some_request(uri):
      try:
          req = requests.post('http://someuri.com', {'test': 'yes'})
      except Exception as e:
          return False
      return {'id': req.json()['value'], 'other': req.json()['other']}
  </code></pre>
  
  <p>You handle the retry  with a while or other python idiom?</p>
  
  <p>Give me a clue on how to do it the right way.</p>