Fix GeometryField to work with Python3