Rename --write-out to --write-config
[config] Fix in Python 2
Fix config file writing in 2.x specifically