def GetSingleListItem(list, default=None):
 if list:
  assert (len(list) == 1), list
  return list[0]
 return default

def GetSingleListItem ( list , default = None ) : if list : assert ( len ( list ) == 1 ) , list return list [ 0 ] return default
return the first item in the list .