factored the bindings and lambdas into separate file
moved some things from python-lib to util
making library work