python dolfin implementation for the 1D schroedinger equation