Fully converted to functional with collapse ... lambda
Merge branch 'master' of https://github.com/hkupty/python_tools