It's as simple as replacing the instances of `uf.GetSection(name)` with `uf.Contents[name]`