smart_open plays nice with zsh, where arrays aren't zero-indexed.