def add_request(request_type, path, data=None):
 global q
 q.put({'type': request_type, 'path': path, 'data': data})

def add_request ( request_type , path , data = None ) : global q q . put ( { 'type' : request_type , 'path' : path , 'data' : data } )
add a request to the queue .