Fix for python 3 indexing exceptions
Merge pull request #12787 from rallytime/pylint_fix

Fix for python 3 indexing exceptions