'Initialize a REST client.
:param url: The ZFSSA REST API URL
:key session: HTTP Cookie value of x-auth-session obtained from a
normal BUI login.
:key timeout: Time in seconds to wait for command to complete.
(Default is 60 seconds)'

def __init__(self, url, **kwargs):

    self.url = url
    self.local = kwargs.get('local', False)
    self.base_path = kwargs.get('base_path', '/api')
    self.timeout = kwargs.get('timeout', 60)
    self.headers = None
    if kwargs.get('session'):
        self.headers['x-auth-session'] = kwargs.get('session')
    self.headers = {'content-type': 'application/json'}
    self.do_logout = False
    self.auth_str = None
