Python Configuration File generation and parsing