I've looked through the source and documentation but there doesn't seem to be a way to write back changes to the loaded Netrc instance.