[python] searching for a layer name using wildcard doesn't seem to work

it seems to have worked before…