nl: split x by character '=' and append first element of the result to the prev_opts list. for every opt in options, if first element of opt is not contained in prev_opts, append opt to the list, substitute it for options.
code: options = [ opt for opt in options if opt [ 0 ] not in prev_opts ]