add PYTHON_LAYER for layers implemented by embedding Python