Fixed index error in notebook_editing_scene

Seems like the calculation sometimes returned a float,
which doesn't work as a list index
Remaped saving to file to 'w'

This matches vim's scheme better