fix lambda, links, and class methods
Merge pull request #25 from adicu/py_fixes

fix lambda, links, and class methods