more pep8 fixes
replace task queue with flags, WIP prymitive/upaas#59