Python boundary value problem. Also, the BC in the text are different from the BC in the code...

Python boundary value problem.  Also, the BC in the text are different from the BC in the code...Python boundary value problem.  Also, the BC in the text are different from the BC in the code...