title: bacnet_scan output a csv file error TypeError: a bytes-like object is required, not 'str'
body: <p>When running bacnet_scan.py it looks like this:</p>
  <pre><code>(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron/scripts/bacnet$ python bacnet_scan.py
  
  Device Address        = &lt;Address 192.168.0.190&gt;
  Device Id             = 0
  maxAPDULengthAccepted = 1476
  segmentationSupported = noSegmentation
  vendorID              = 245
  
  Device Address        = &lt;Address 192.168.0.102&gt;
  Device Id             = 3056183
  maxAPDULengthAccepted = 1024
  segmentationSupported = segmentedBoth
  vendorID              = 842
  
  Device Address        = &lt;RemoteStation 12345:2&gt;
  Device Id             = 201201
  maxAPDULengthAccepted = 286
  segmentationSupported = noSegmentation
  vendorID              = 11
  </code></pre>
  <p>Trying to add on a csv file output with <code>python bacnet_scan.py --csv-out ~/Desktop/volttron/configs/test_mult.csv</code></p>
  <p>I get an error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;bacnet_scan.py&quot;, line 203, in &lt;module&gt;
      this_csv_file.writeheader()
    File &quot;/home/bartlino/anaconda3/lib/python3.8/csv.py&quot;, line 143, in writeheader
      return self.writerow(header)
    File &quot;/home/bartlino/anaconda3/lib/python3.8/csv.py&quot;, line 154, in writerow
      return self.writer.writerow(self._dict_to_list(rowdict))
  TypeError: a bytes-like object is required, not 'str'
  </code></pre>
  <p>Any tips?</p>