def getPriorityStrict(element):
 prio_str = element.get('priority')
 if (prio_str is not None):
  prio_val = int(prio_str)
  if (prio_val >= 0):
   return prio_val
  else:
   raise ValueError('Priority values must be non-negative integers')
 return Max

def getPriorityStrict ( element ) : prio_str = element . get ( 'priority' ) if ( prio_str is not None ) : prio_val = int ( prio_str ) if ( prio_val >= 0 ) : return prio_val else : raise ValueError ( 'Priority values must be non-negative integers' ) return Max
get the priority of this element .