Add new Python local end

Update tests to use new Python local end.