group writeable sync_temp_dir, and pep8 fixes
moved verify logging out of private function, seemed to cause errors