[python] How to modify list entries during for loop?