def opts_to_pp(repair, unpack, delete):
 if (repair is None):
  return None
 pp = 0
 if repair:
  pp = 1
 if unpack:
  pp = 2
 if delete:
  pp = 3
 return pp

def opts_to_pp ( repair , unpack , delete ) : if ( repair is None ) : return None pp = 0 if repair : pp = 1 if unpack : pp = 2 if delete : pp = 3 return pp
convert to numeric process options .