'Make a path?query string for making a REST request
:cmd_params args: The path part
:cmd_params kwargs: The query part'

@staticmethod
def mkpath(*args, **kwargs):

    buf = six.StringIO()
    query = '?'
    for arg in args:
        buf.write('/')
        buf.write(arg)
    for k in kwargs:
        buf.write(query)
        if (query == '?'):
            query = '&'
        buf.write(k)
        buf.write('=')
        buf.write(kwargs[k])
    return buf.getvalue()
