Here's the solution I'm using at least tentatively:
grep 'def ' *.py > defs
# ...
# edit defs so that it just contains the function names
# ...
for f in `cat defs` do
cat $f >> defCounts
cat *.py | grep -c $f >> defCounts
echo >> defCounts
done
Then I look at the individual functions that have very few references (< 3 say)
it's ugly, and it only gives me approximate answers, but I think it's good enough for a start. What are you-all's thoughts?