UpdateFlag = str(theImage.parasite_find('UpdateFlag'))
Flow = str(theImage.parasite_find('Flow'))
if (UpdateFlag == 'YES'):
if (Flow == 'Standard'):
{ run commands for Standard flow }
elif (Flow == 'SemiAuto'):
{ run commands for SemiAuto Flow }
elif (UpdateFlag == 'NO'):
{ do nothing }