The empty string in Python is falsy so that "if content:" was failing on empty files. Also fixed f->file typo
Merge pull request #12 from almost/patch-1

A couple of bugs in put_object