This is a nice improvement and works as-is.  Did you consider doing it this way?

sys.path.append(os.path.dirname(os.path.dirname(__file__))

It seems to me a little more expressive of what we're doing.