def authenticate_umls(self): # TODO sort imports out from authentication import Authentication import creds auth = Authentication(apikey=creds.apikey) tgt = auth.gettgt() return auth, tgt