You have a function call in m.bind('<FocusOut>', reset(m)). Remove it.
m.bind('<FocusOut>', reset(m))