def __init__(self,*args,**kwargs):        
        'Creates a new Ingest Ticket, ready for processing by the ingest pipeline'
        if '_id' not in kwargs:
            kwargs['_id'] = uuid.uuid4().hex
        if 'state' not in kwargs:
            kwargs['state'] = 'new'
        if '_created' not in kwargs:
            kwargs['_created'] = time.time()
        owner = kwargs.get('owner')
        if not type(owner) in (str, unicode):
            raise IngestTicketInvalidOwnerException()
        for x in ('collection', 'format'):
            if not kwargs.get(x):
                raise IngestTicketInvalidInit(x % 'You need to supply the parameter %s')
        for x in ('_created', '_last_modified'):
            if x in kwargs:
                kwargs[x] = datetime.fromtimestamp(kwargs[x])
        dict.__init__(self,*args,**kwargs)
dataset/ETHPy150Open okfn/bibserver/bibserver/ingest.py/IngestTicket.__init__/swapped operands of `%`