Refactored sklearn based solver code