How can I use Python to list all components and modify their display settings in a KiCad PCB?
Using Python to list all components and modify their display settings in a KiCad PCB can be achieved with scripting. The script provided iterates through the components, lists them, and changes their visibility settings:

```python
#!/usr/bin/env python2.7
import sys
from pcbnew import *

filename=sys.argv[1]

pcb = LoadBoard(filename)
for module in pcb.GetModules():
    print "* Module: %s"%module.GetReference()
    module.Value().SetVisible(False)      # set Value as Hidden
    module.Reference().SetVisible(True)   # set Reference as Visible

pcb.Save("mod_"+filename)
```

This script is ideal for situations where you need to adjust the display properties of components for documentation, review, or printing purposes, making it easier to identify each part on the PCB.