just ran pycharm's 'format source code' to get it into a more sane state