The second argument to at is named default (and named arguments must be named)
Additionally, you don’t need to convert sys to a dictionary, and you can directly access inputs as a property of sys:
Indeed, sys is a module. Modules can be converted to dictionaries, as in the screenshot you’ve just shown, but fields/methods/variables defined in the module can also be referenced with dot notation (like sys.inputs).
As for the error, I agree that it is not always obvious when an argument should be named instead of positional