You could remove the `try: except AttributeError:` if instead use `if getattr(option_definitions[key], 'is_argument', False) and ...`
Then you don't need to explain yourself with a comment.