the problem was a not suitable macros file which is belonging to Leap 15.3. i don't think that zypp needs a patch. There is another problem with this macros file, that the introduced python variable is not used and it assumes an executable with name python. if the legacy packages python/python-base are deinstalled, there is no python executable provided through the python3 package. The python3 installation should create a python link via update-alternatives.