Command line args would have been the simplest solution imho.
Works simple for simple cases and power users will create a bash wrapper anyway.
Hard to be wise without knowing the context, but I avoid config files as much as possible, because:
- Where does the config file live on different machines?
- What if I want to have 2 configurations on one machine?
- What if I need to change the list dynamically?
`for ip in sys.args` would give you most flexibility.