How can I add a text label to a PCB in KiCad using Python?
To add a text label to a PCB in KiCad using Python, use the pcbnew module. Here's a script example:

```python
import pcbnew

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

# Create a new text label
pcb_text = pcbnew.TEXTE_PCB(board)
board.Add(pcb_text)

# Set the text value, position, and size
pcb_text.SetText('My Custom Label')
pcb_text.SetPosition(pcbnew.wxPointMM(20, 20)) # Position in mm
pcb_text.SetTextSize(pcbnew.wxSizeMM(1, 1)) # Size in mm

# Save the board
board.Save('path/to/save/your/pcb.kicad_pcb')
```

This script adds a text label 'My Custom Label' to the current PCB at a specified position.