Add python scripts for the linearized solution.