Replace uses of map/lambda with more Pythonic code

  map(lambda x: expr(x), seq)

can be written more simply as

  [expr(x) for x in seq]

Signal that we need the side effects of expr by replacing

  map(lambda x: UpdateState(x, ...), seq)

with

  for x in seq:
    UpdateState(x, ...)

Signed-off-by: Brian Foley <bpfoley@google.com>
Reviewed-by: Viktor Bachraty <vbachraty@google.com>
15 files changed