lambda python layer structure