[python] Python error when trying to access list by index - "List indices must be integers, not str"