Why `copy.copy` the `fields`? Also, since you know fields is a dict, you can actually just use `dict(fields)` to create a new shallow copy, if you really need to. Then you don't need to import `copy`.