title: Accessing a PHP-set memcache key from Python
body: <p>I'm storing a value in memcached using PHP's Memcache extension and trying to retrieve it in a daemon written in Python sitting behind my webapp.  But, it keeps returning None or throwing "local variable 'val' referenced before assignment".</p>
  
  <p>I'm sure I'm looking for the same key, and there's only one mc server available to either app (localhost).  If I try setting the key on a Python terminal, it returns False and unsets it (i.e., I can no longer retrieve it through PHP).  Any ideas?</p>