awful stripped-down pybab (aka layermap)