Fixed #22714 -- Made contrib.gis use six-provided memoryview type

Thanks Tim Graham for the report.