def create_poll(self, title, user, **kwargs): ''' Creates a poll with the parameters Title : User ''' if title in self.poll_list: return "The poll already exist, remove it before" poll = Poll(title, user) self.poll_list[title] = poll poll.question = kwargs["question"] #set basic choices poll.choices = [":+1:",":-1:"] return "The poll \""+title+"\" has been created"