Python 2.7 script to convert an image to the Xilinx .coe format