Remove commented-out code
pylint fixes
If success_condition fails, raise an exception