<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def post(self, udid):
        ''' add new task '''
        que = self.ques[udid]
        timeout = self.get_argument('timeout', 10.0)
        if timeout is not None:
            timeout = float(timeout)
        data = tornado.escape.json_decode(self.request.body)
        data = {'id': str(uuid.uuid1()), 'data': data}
        yield que.put(data, timeout=time.time()+timeout)
        print 'post, queue size:', que.qsize()
        self.write({'id': data['id']})
        self.finish()