title: Changing LD_LIBRARY_PATH at runtime for ctypes
body: <p>How do you update this environment variable at runtime so that ctypes can load a library wherever? I've tried the following and neither seem to work.</p>
  
  <pre><code>from ctypes import *
  os.environ['LD_LIBRARY_PATH'] = "/home/starlon/Projects/pyCFA635/lib"  
  os.putenv('LD_LIBRARY_PATH', "/home/starlon/Projects/pyCFA635/lib")  
  lib = CDLL("libevaluator.so")
  </code></pre>