title: Unable to retrieve known keys in python/boto
body: <p>I'm attempting to connect to a coworkers S3 bucket using python and boto. I was previously able to do this without any issues, but they recently added prefixes/directories to the bucket and I can no longer access the keys.</p>
  
  <p>Any attempts to get a key with bucket.get_key(keyname) return a NoneType. If I get all keys with bucket.get_all_keys(), I get a long list of keys.</p>
  
  <pre><code>&gt;&gt;&gt; s3 = boto.connect_s3()
  &gt;&gt;&gt; bucket = s3.get_bucket('bucket_name')
  &gt;&gt;&gt; keys=bucket.get_all_keys()
  &gt;&gt;&gt; len(keys)
  1000
  &gt;&gt;&gt; keys[5:7]
  [&lt;Key: bucketname,/prod/keyname&gt;, &lt;Key: bucketname,/prod/keyname&gt;]
  &gt;&gt;&gt; keys[6].get_contents_as_string()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 1782, in get_contents_as_string
      response_headers=response_headers)
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 1650, in get_contents_to_file
      response_headers=response_headers)
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 1482, in get_file
      query_args=None)
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 1514, in _get_file_internal
      override_num_retries=override_num_retries)
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 343, in open
      override_num_retries=override_num_retries)
    File "/home/myusername/.pyenv/versions/2.7.8/lib/python2.7/site-packages/boto/s3/key.py", line 303, in open_read
      self.resp.reason, body)
  boto.exception.S3ResponseError: S3ResponseError: 404 Not Found
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Error&gt;&lt;Code&gt;NoSuchKey&lt;/Code&gt;&lt;Message&gt;The specified key does not exist.
  </code></pre>
  
  <p>I obscured some information, but they key names and prefixes take the form of /prod/word-123-123, where there are dashes and numbers in the names.</p>
  
  <p>Is there any reason why this might be happening? Do I have to treat things differently now that there are prefixes/directories?</p>
  
  <p>edit: I just got a coworker to add an item that has no prefix, and I was able to get it successfully.</p>
  
  <pre><code>&gt;&gt;&gt; bucket.get_key('test-bucket-item')
  &lt;Key: bucketname,test-bucket-item&gt;
  &gt;&gt;&gt; key=bucket.get_key('test-bucket-item')
  &gt;&gt;&gt; key.get_contents_as_string()
  'test contents'
  </code></pre>