I do not understand, what you mean: I am concerned about line 34

   path = os.path.join(home, suffix).rstrip(os.path.sep)

which uses 'home' which is undefinded there and will only be defined in line 41:

     home = _vim.eval("$HOME")

Or am I missing something obvious here?