remove bare except and replace with except Exception
import ordering cleanup
replace bare except with except Exception
clean up some unneeded camelCase var names
rename __accumulateProfile to _accumulate_profile

I don't see any reason for that method to be __'ed
local varible name cleanup