def combine_values(*values):
 for v in reversed(values):
  if (v is not None):
   return v
 else:
  return None

def combine_values ( * values ) : for v in reversed ( values ) : if ( v is not None ) : return v else : return None
return the last value in *values* that is not none .