title: How does sleep cmd in python works?
body: <p>In one file, <code>test1.py</code>, I am calling function of another file, <code>test2.py</code>.</p>
  
  <p><strong>test1.py</strong></p>
  
  <pre><code>def attente_evenements(self):
              self.checkLog.evnt_findLogIdentity()
              print "\t\t\t SHOULD HAVE GOT THE LOG FILE \n"
  </code></pre>
  
  <p><strong>test2.py</strong></p>
  
  <pre><code>def evnt_findLogIdentity(self):
              sleep(180)
              print "\t\tLogging in is done \n "
  </code></pre>
  
  <p>I should get the order of print statements as </p>
  
  <ol>
  <li>Logging in is done</li>
  <li>SHOULD HAVE GOT THE LOG FILE</li>
  </ol>
  
  <p>But WHY i am getting in reverse ORDER </p>
  
  <ol>
  <li>SHOULD HAVE GOT THE LOG FILE</li>
  <li>Logging in is done</li>
  </ol>
  
  <p>??????</p>