Python find the largest square in the matrix dynamic programming

I have a matrix as follows (Python) : matrix = “”” …o..o.o …oo…. …o….o ..o.ooo.. o…o…. .oo…… ..o….o. .oo…… ……… “””…