fix pycharm warnings