def SWHL_command():
response = requests.get("http://www.swhl.ru/tournament/1026071/teams")
soup = BeautifulSoup(response.content, "lxml")
commands_names = soup.find_all("a", class_="teams__name-link")
for commands_name in commands_names:
c = commands_name.text.strip()
return c
print(SWHL_command())