See #5 in https://www.toptal.com/python/top-10-mistakes-that-python-programmers-make

http://stackoverflow.com/questions/1207406/remove-items-from-a-list-while-iterating