You have to change the attribute names in the __init__ method, not in the _properties construct: def __init__(self, id, question, responses): self.id=id self.question = question self.responses = responses