There is an argparse-specific way of dealing with this. From the documentation:
If you prefer to have dict-like view of the attributes, you can use
the standard Python idiom, vars()
.
Therefore, you should be able to write:
print vars(args)["lambda"] # No keyword used, no syntax error.