The empty string in Python is falsy so that "if content:" was failing on empty files. Also fixed f->file typo