Bash Loop Over Json Array Length In Python