Fixed endswith() call using a bytestring instead of str
Fixed endswith() call using a bytestring instead of str

swatz/canmatrix,altendky/canmatrix,altendky/canmatrix,swatz/canmatrix,ebroecker/canmatrix,ebroecker/canmatrix