Chrome must be closed while editing the file directly, otherwise changes may be overwritten.
To read/modify Chrome bookmarks programmatically (Python example): google chrome favorites location