vim: Make Sniper() append tests at logical places

Insert the test close to the group of tests from the same class, or just append
at the end of the file as it used to before.
Also general cleanup
vim: Update python XPT with more mock things
vim: Run BufWritePost in Autosave()