My config file is really just a big python dict, but I have many config files to run different experiments and I want to 'import' a different one based on a command line option. Instinctively I want to do import ConfigFileName where ConfigFileName is a string with the config file's python package name in it...  but that doesn't work.
Any ideas?
You might consider ConfigParser, also included with python.  It offers simple sectioned name/value items, default settings, and some substitution capabilities.  If that's flexible enough for your needs, it would be a nice alternative.
What's the best way to use python-syntax config files (in python of course)?