Why are you setting self.doc_file here?