Cleaned the configuration generator python codes