title: calling an outside function in python
body: <p>I am trying to return (execute) a function from another file in an if statement.
  I have read that the return statement will not work, I was hoping someone would know what statement would allow me to call an outside function.</p>
  
  <p>The function creates a sandbox but if one exists I want to pass the if statement.</p>
  
  <p>This is a small snippet of code I used.</p>
  
  <pre><code>import mks_function  
  from mksfunction import mks_create_sandbox  
  import sys, os, time  
  import os.path  
  
  if not os.path.exists('home/build/test/new_sandbox/project.pj'):
   return mks_create_sandbox()  
  else:  
   print pass  
  </code></pre>