'Returns a doctype given an index and a name'

def get_doctype(self, index, name):

    if (index not in self.indices):
        self.get_all_indices()
    return self.indices.get(index, {}).get(name, None)
