formatting changes to TWB; comment edits to PY