Quick Look: YAML
YAML - another human-readable format, great for config files:
import yaml
config = {'photo_dir': 'photos', 'extensions': ['.jpg', '.png']}
with open('config.yaml', 'w') as f:
yaml.dump(config, f)
with open('config.yaml') as f:
loaded = yaml.safe_load(f)
pip install pyyaml - JSON for data, YAML for config.