def get_creds(self, api_id=None):
    if (api_id != None):
        return APICredentials().get(api_id)
    else:
        return APICredentials().get_self()
def get_creds(self, api_id=None):
    if (api_id != None):
        return APICredentials().get(api_id)
    else:
        return APICredentials().get_self()