def build_url_kwargs(url, **kwargs):
    """
    Builds a url with query and kwargs
    Expects kwargs to be in the format of key=value
    :param url:
    :param kwargs:
    :return:
    """
    if len(kwargs) == 0:
        return url
    url += '?'
    for key, val in kwargs.items():
            url += key + '=' + val
            url += '&'
    url = url[:-1]

    return url