Merge "cargo2rulesmk.py: Remove Python match usage" into main