Trying to sort out the bug where re.escape is escaping the ssid twice when writing a config