Fixes the error TypeError: list indices must be integers, not str
Merge pull request #1 from tberton/master

Fixes the error TypeError: list indices must be integers, not str