(self, rest_url, username, password, hostname, request=None)
Arguments:
            rest_url {[type]} -- Pygmy API url
            username {[type]} -- api username
            password {[type]} -- api password
            hostname {[type]} -- the pygmy website/ui hostname. Used to create the short url
Arguments:
            rest_url {[type]} -- Pygmy API url
            username {[type]} -- api username
            password {[type]} -- api password
            hostname {[type]} -- the pygmy website/ui hostname. Used to create the short url
Arguments : rest_url { [ type ] } -- Pygmy API url username { [ type ] } -- api username password { [ type ] } -- api password hostname { [ type ] } -- the pygmy website / ui hostname . Used to create the short url
def __init__(self, rest_url, username, password, hostname, request=None):
        """
        Arguments:
            rest_url {[type]} -- Pygmy API url
            username {[type]} -- api username
            password {[type]} -- api password
            hostname {[type]} -- the pygmy website/ui hostname. Used to create the short url
        """

        self.name = username
        self.password = password
        self.rest_url = rest_url
        scheme = 'http://' if not urlparse(hostname).scheme else ''
        self.HOSTNAME = '{}{}'.format(scheme, hostname)
        self.request = request
        self.cookies = None if request is None else request.COOKIES
        super().__init__(rest_url, basic_auth=True, username=username, password=password)
def __init__ ( self , rest_url , username , password , hostname , request = None ) : self . name = username self . password = password self . rest_url = rest_url scheme = 'http://' if not urlparse ( hostname ) . scheme else '' self . HOSTNAME = '{}{}' . format ( scheme , hostname ) self . request = request self . cookies = None if request is None else request . COOKIES super ( ) . __init__ ( rest_url , basic_auth = True , username = username , password = password )