def faster(words):
    freq = {}
m_k = None
m_v = 0
for w in words:
    if w in freq:
        v = freq[w] + 1
else:
    v = 1
freq[w] = v
if v > m_v:
    m_k = w
m_v = v
return m_k, m_v
Is there a significantly better way to find the most common word in a list (Python only)