title: Hello on terminal not run when importing
body: <p>Tests and the <strong>strange behaviour</strong>: running at command CLI but not as file.</p>
  <hr />
  <p><strong>test1.py</strong>. Script:</p>
  <pre class="lang-py prettyprint-override"><code>#!/usr/bin/env python3
  
  print (&quot;\nHello test1!\n\n&quot;)
  </code></pre>
  <p>It is fine, all running:</p>
  <ol>
  <li>[✔] at <code>python3</code> command CLI, by copy/paste script.</li>
  <li>[✔] using <code>python3 test1.py</code></li>
  <li>[✔] using <code>chmod 777 test1.py; ./test1.py</code></li>
  </ol>
  <p><strong>test2.py</strong>. Script supplied by <a href="https://github.com/noahmorrison/chevron" rel="nofollow noreferrer">chevron's guide</a>:</p>
  <pre class="lang-py prettyprint-override"><code>#!/usr/bin/env python3
  
  import chevron
  
  chevron.render('Hello, {{ mustache }}!', {'mustache': 'TEST2'})
  </code></pre>
  <p>It is fine only by first mode:</p>
  <ol>
  <li>[✔] at <code>python3</code> command CLI, by copy/paste script.</li>
  <li>[empty output!] using <code>python3 test2.py</code></li>
  <li>[empty output!] using <code>chmod 777 test2.py; ./test2.py</code></li>
  </ol>