I get "list assignment index out of range" error . The strange thing with this error is not every iteration I get this. I have "n" iterations in my code,