title: python s3 using boto, says 'attribute error: 'str' object has no attribute 'connection'
body: <p>I have a connection that works as I can list buckets, but having issues when trying to add a object.</p>
  
  <pre><code>conn = S3Connection(awskey, awssecret)
  
  key = Key(mybucket)
  
  key.key = p.sku
  key.set_contents_from_filename(fullpathtofile)
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>'attribute error: 'str' object has no attribute 'connection'
  </code></pre>
  
  <p>the error is in the file:</p>
  
  <pre><code>/usr/local/lib/python2.6/dist-package/boto-2.obl-py2.6.egg/boto/s3/key.py' line # 539
  </code></pre>