How to change a component's value in KiCad using Python?
To change a component's value in KiCad using Python, use the pcbnew module. Here's a basic script:

```python
import pcbnew

# Load the current board
board = pcbnew.GetBoard()

# Find the component
component_ref = 'C1'
component = board.FindFootprintByReference(component_ref)

# Check if the component exists
if component:
    # Change the component's value
    component.SetValue('100nF')
    board.Save('path/to/save/your/pcb.kicad_pcb')
else:
    print('Component not found')
```

This script finds a component by its reference and changes its value.