In tutorial.rst new_repo = repo.init("path/for/new/repo") should be new_repo = Repo.init("path/for/new/repo")