title: Running a python script for indefinite time
body: <p>I have a python script that goes like this -</p>
  
  <pre><code>import..
  def main ():
    some_condition check
    main() #calling main again
    some condition check
    main() #calling main again
  main()
  </code></pre>
  
  <p>The idea here is to let the script run indefinitely and check for something.
  This way of calling main() somehow seems incorrect.
  I am quite new to Python scripting. Can someone guide me if this very inefficient and if yes then how do I achieve this?</p>