Convert Mask To Polygon Python