minor changes from pycharm inspection results