python implementation of dinner party
little change