Stripping all instances of a string from a string in python
<p>I have some results from a custom API that I need to parse and clean up. below is a sample output that is stored as a variable.</p>

<pre><code>(DeviceConnectionInformation){
     DeviceName = "device1"
     ClientName = "ourclient"
     RegionName = "west"
     PrimaryIP = "1.1.1.1"
     OsVersionName = "Microsoft Windows 7 Enterprise"
     AccessMethod = None
     AccessIP = None
     Port = None
  },
  (DeviceConnectionInformation){
     DeviceName = "device2"
     ClientName = "ourclient"
     RegionName = None
     PrimaryIP = "1.1.1.2"
     OsVersionName = "Microsoft Windows 7 Enterprise"
     AccessMethod = None
     AccessIP = None
     Port = None
</code></pre>

<p>I need to strip any and all occurences of "(DeviceConnectionInformation){" and "}," that might occur, and leave the below format:</p>

<pre><code>DeviceName = "device1"
ClientName = "ourclient"
RegionName = "west"
PrimaryIP = "1.1.1.1"
OsVersionName = "Microsoft Windows 7 Enterprise"
AccessMethod = None
AccessIP = None
Port = None

DeviceName = "device2"
ClientName = "ourclient"
RegionName = None
PrimaryIP = "1.1.1.2"
OsVersionName = "Microsoft Windows 7 Enterprise"
AccessMethod = None
AccessIP = None
Port = None
</code></pre>
