Fix which function logic
updated py-which-def-or-class
to work show more consistent and useful results in the mode-line
Consider the following snippet:
1: class A(object):
2: def a(self):
3: pass
4: def b(self):
5: pass
Previously, a cursor at line 5 would result in A.a.b
. This these changes the result is A.b