Update go2function.py

Speed improvements and better handling of settings.
Merge pull request #9 from taoeffect/patch-1

Update go2function.py