group writeable sync_temp_dir, and pep8 fixes