fix  errors PyCharm autorefactoring