args is a Namespace object, and those aren't iterable, so unfortunately the [x for x in...] construct doesn't work here. Agreed that this is gross, and another good reason to move away from argparse.