Implemented get_doctypes on the Document object