Extend gen_keyvalue_list to support multiple interps