prepare request parameters

def prepare_params(request):
    """prepare request parameters"""
    return request.replace(
        params={key: dump_param(val) for key, val in request.params.items()
                if val is not None})