title: Python Error when imported from different directory
body: <p>In mydir/test/testing/pqtest.py</p>
  
  <pre><code>import os,sys
  lib_path = os.path.abspath('../../lib/mine')
  sys.path.append(lib_path)
  
  import Util                &lt;---- get a traceback
  import string
  import random
  
  # my code
  </code></pre>
  
  <hr>
  
  <pre><code>    Traceback (most recent call last):
         File "pqtest.py", line 5 in ?
             import Util
         File "mydir/lib/mine/Util.py", line 89
            yield v if l &gt; 0 else ''                       Error is point at if
  
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>However, there are other files that import Util.py inside <code>mydir/lib/mine</code> that does not have any problems with this file.</p>
  
  <p>So why is it giving me this traceback when i am importing from somewhere else, in this case <code>mydir/test/testing</code>?</p>
  
  <p>Syntax error on yield v if l > 0 else ''</p>
  
  <pre><code>def expand():
      for l,v in zip(field,val):
          yield l
          yield v if l &gt; 0 else ''
  </code></pre>
  
  <p>this is good for python 2.5 but not for python 2.4  </p>
  
  <p>I am assuming I need to tell pqtest.py to use python 2.5 but not sure how</p>