title: Reloading a JSON file on Python
body: <p>I'm trying to create a function who update (reload) the content of a JSON file everytime this is modified.</p>
  
  <p>I (obviuously) already load the file:</p>
  
  <pre><code>comandos = json.load(open('comandos.json'))
  </code></pre>
  
  <p>But everytime the json is updated, i have to kill the python process to do load it again.</p>
  
  <p><strong>-- Update</strong></p>
  
  <p>The script is in a loop, i'm using it as a Bot (conected to Telegram, listening for any commands from a user group).</p>
  
  <p>In this case, when i 'release' new functions (new commands) i would like that the bot reload all the content on the file 'comandos.json' to get the new options on the Telegram channel.</p>
  
  <p>Thank you for your time.</p>