protected SimpleFeatureType buildFeatureType() throws IOException {
SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();
tb.setName(((PyString)schema.__findattr__("name")).asString());
PyList fields = (PyList) schema.__findattr__("fields");
for (Object o : fields.toArray()) {
PyObject field = (PyObject) o;
String name = ((PyString)field.__findattr__("name")).asString();
PyType type = (PyType)field.__findattr__("typ");