Python config based on dict representation