def create_ticket(self, title='', desc='', dest='', due='', pri=0, completed=False):
    ticket = {'title': title, 'desc': desc, 'for': dest, 'time_in': datetime.datetime.now().strftime('%Y-%m-%d %H:%M'), 'time_out': due, 'nice': pri, 'completed': completed}
    self.tickets[title] = ticket
    self.write_tickets()
    self.read_tickets()
def create_ticket(self, title=, desc=, dest=, due=, pri=0, completed=False):
    ticket = {'title': title, 'desc': desc, 'for': dest, 'time_in': datetime.datetime.now().strftime('%Y-%m-%d %H:%M'), 'time_out': due, 'nice': pri, 'completed': completed}
    self.tickets[title] = ticket
    self.write_tickets()
    self.read_tickets()