Elegant way to modify a list of variables by reference in Python?,"setattr(i, x, f(getattr(i, x)))"