Applying patches from unmerged PR's - check .fields instead of .local_fields, use .to_python on values and copy values