def c_looks(client):
 cmds = [('look %s' % obj) for obj in client.objs]
 if (not cmds):
  cmds = [('look %s' % exi) for exi in client.exits]
  if (not cmds):
   cmds = 'look'
 return cmds

def c_looks ( client ) : cmds = [ ( 'look %s' % obj ) for obj in client . objs ] if ( not cmds ) : cmds = [ ( 'look %s' % exi ) for exi in client . exits ] if ( not cmds ) : cmds = 'look' return cmds
looks at various objects .