I don't like this doubly nested loop, it seems unnecessary. why not

for field in fields:
   if field.name in attrs_to_strip: