sets pep and catches errors with pycharm