damaged_image = cv2.imread("Corrupted.png")
mask = cv2.imread("mask.png", 0)
output = cv2.inpaint(damaged_image, mask, 1, cv2.INPAINT_TELEA)
I couldn't generate mask with python, i have drawn the mask by using Paint as you can see it is not perfect.
After this code i get this output:
the repaired image should look similar to this picture: