title: Python modules and exit (beginner tier)
body: <p>So, I'm having this problem, I'll try to explain:</p>
  
  <pre><code>#file1.py
      def main()
       if 1 != a:
         print "error"
         exit(1)
       else:
         print "sucess"
  </code></pre>
  
  <p>So I imported this "file1.py" in "file2.py"</p>
  
  <pre><code>#file2.py
  
      import file1
      control=2
      try:
        while True:
          if control == "2":
            main("2")
            print "something"
      except:
        print "error"
  </code></pre>
  
  <p>So, for some reason this "exit(1)" in the "python1" is exiting my code in "python2" after I call main("2") and the "print 'something'" is not being parsed.</p>