fixing pycharm compatibility