These blocks are quite large.  It woudl be cleaner to process each flag in separate functions.

```python
if opts.vo:
   process_vo(...)
```