added rest decorator and control function
refactoring some imports
setupscript without errors
fixed a threading problem
replaced old lzy function with util
fixes
cleaning imports according to the google python code guidelines
changing imports, replaced log helpers with partial
more import changes, more generator functions