How can I mirror a footprint on the PCB in KiCad using Python?
To mirror a footprint on the PCB in KiCad using Python, use the pcbnew module. Here's an example script:

```python
import pcbnew

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

# Find the footprint
footprint_ref = 'Q1' # Replace with your footprint reference
footprint = board.FindFootprintByReference(footprint_ref)

# Check if the footprint exists
if footprint:
    # Mirror the footprint around the Y-axis
    footprint.Flip(pcbnew.wxPoint(0,0), True)
    board.Save('path/to/save/your/pcb.kicad_pcb')
else:
    print('Footprint not found')
```

This script mirrors a specified footprint on the Y-axis on the current PCB.