@Override
protected List<Name> createTypeNames() throws IOException {
PyObject workspace = getWorkspace();
PyMethod layers = (PyMethod) workspace.__findattr__("layers");
if (layers == null) {
layers = (PyMethod) workspace.__findattr__("keys");
}
PyList result = (PyList) layers.__call__();
List<Name> typeNames = new ArrayList<Name>();
for (Object o : result.toArray()) {
typeNames.add(new NameImpl(o.toString()));
}