async def login(self, *args, **kwargs):
    'Log into API (fills `self.username`)'
    self.create_api_object(*args, **kwargs)
    if (not self.token):
        self.username = 'UNKNOWN [no token]'
    else:
        user = (await self.api.getitem('/user'))
        self.username = user['login']
Log into API (fills `self.username`)
async def login(self, *args, **kwargs):
    
    self.create_api_object(*args, **kwargs)
    if (not self.token):
        self.username = 'UNKNOWN [no token]'
    else:
        user = (await self.api.getitem('/user'))
        self.username = user['login']