def dict_search(d, k, v):
for i in range(len(d)):<EOL><INDENT>if d[i][k] == v:<EOL><INDENT>return i<EOL><DEDENT><DEDENT>return None<EOL>
Search dictionary list by key and value
:param d: dictionary list
:param k: key
:param v: value
:return: the index of the first dictionary in the array with the specific key / value