Do NOT modify a list you are iterating over.

also NEVER use tabs in python, always 4 spaces.