Python code for solving the two-dimensional Laplace equation

The following Python code sets up and solves the Laplace equation in two dimensions.