Working on Writing an FPGA image

So far I can change the mode of the MCU but I am unable to send down
bit data to the MCU. I think there might be something wrong when
configuring the MCU to read the bulk endpoint

Specifically the error code I get from the pyusb module is:

(when I write a packet of bit file data)

File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  self.run()
File "/home/cospan/Projects/prometheus_comm/server/prometheus_server.py",
  line 59, in run
  self.connection_cb()
File "/home/cospan/Projects/prometheus_comm/server/prometheus_server.py",
  line 147, in server_data_connection_cb
  self.data_activity_cb(data)
File "/home/cospan/Projects/prometheus_comm/prometheus.py",
  line 390, in data_server_activity_cb
  self.program_fpga(buf)
File "/home/cospan/Projects/prometheus_comm/prometheus.py",
  line 217, in program_fpga
  self.usb_server.download_fpga_image(buf)
File "/home/cospan/Projects/prometheus_comm/usb_server/prometheus_usb.py",
  line 238, in download_fpga_image
  self.prometheus_fx3.upload_fpga_image(buf)
File "/home/cospan/Projects/prometheus_comm/usb_server/prometheus_fx3.py",
  line 152, in upload_fpga_image
  self.dev.write(0x02, buf, timeout=3000)
File "/usr/local/lib/python2.7/dist-packages/usb/core.py",
  line 624, in write
  fn = fn_map[self._ctx.get_endpoint_type(self, endpoint, intf)]
File "/usr/local/lib/python2.7/dist-packages/usb/core.py",
  line 180, in get_endpoint_type
    etype = util.endpoint_type(e.bmAttributes)

AttributeError: 'NoneType' object has no attribute 'bmAttributes'

so 'e' is a None type

I added a common folder that will parse Cypress error messages and write
out the associated string error so I don't have to look up the error
codes.