title: can't add itertools.so to the path in os
body: <p>I am using the mac os x 10.10.1, and python2.7. Just recently I have installed the blend environment and I tried to create some animation programmatically through a python program called batch2.py together blender.</p>
  
  <p>if I execute the program in <code>python batch2.py</code>, it works with no problem, To make the animation, I have to execute it by the command
  - <code>/Applications/Blender/blender.app/Contents/MacOS/blender -b scene.blend -P batch2.py</code>,</p>
  
  <p>however a error is shown up saying :     </p>
  
  <pre><code>print ( list(itertools.imap(None, numbers, decimals))  )
  AttributeError: 'module' object has no attribute 'imap' 
  </code></pre>
  
  <p>batch2.py is shown below, a simple python program.</p>
  
  <pre><code>import sys    
  import itertools
  
  print (sys.path)
  print (".....................")
  
  letters = ['a', 'b', 'c', 'd', 'e', 'f']
  booleans = [1, 0, 1, 0, 0, 1]
  numbers = [23, 20, 44, 32, 7, 12]
  decimals = [0.1, 0.7, 0.4, 0.4, 0.5]
  
  print ( list(itertools.imap(None, numbers, decimals))  )
  </code></pre>
  
  <p>since the blender application has its own python environment based python 3.4, so I just add the system os environment to the sys.path as below.</p>
  
  <pre><code>sys.path.append("/Users/abc/anaconda/lib/python2.7")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/site-packages")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/lib-dynload/")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/plat-darwin")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/plat-mac")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/lib-tk")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/lib-old")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/site-packages/PIL")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/site-packages/Sphinx-1.2.3-py2.7.egg")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/site-packages/runipy-0.1.1-py2.7.egg")
  sys.path.append("/Users/abc/anaconda/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg")
  </code></pre>
  
  <p>but still it doesn't work.</p>
  
  <p>I found itertools is in the path of '/Users/abc/anaconda/lib/python2.7/lib-dynload/itertools.so', but how could I use it ?</p>