No, I don't agree with that.
When you type 'return', the system returns to view mode, then the 'save' command can be executed normally, as you pasted the result previously. The problem is after typing the 'save', 'y' or 'n' should be followed, and will you please try the config_commands below:
config_commands = [ 'int loop 1',
'ip add 1.1.1.1 255.255.255.0',
'return',
'save',
'y',]