def _finalize_metadata(self, node):
final = {}<EOL>for key, val in iter(node.metadata.items()):<EOL><INDENT>final[key] = list(val)<EOL><DEDENT>node.metadata = final<EOL>return node<EOL>
Convert node metadata back into a standard dictionary and list.