Using ".if empty(FLAVOR)" means you can't have FLAVORS unrelated to python handling. ".if !${FLAVOR:Mpython3}" is less readable but more generic. No functional change.