Fix python 3 indexing exceptions
Merge pull request #12984 from rallytime/pylint_fixes

Fix python 3 indexing exceptions