Adding python solution.
Works by detecting left-upper-corners, follow walls(in x and y) until
wall is found. Calculates the last point from the three points.