Parsing and manipulation of rtorrent state file contents