Add tdir, this dir, snippet to python