Upgrade to pycharm 4. Remove dead code.