expose shape layers to python