SPI loopback test

Hello all, I am new to the world of the BBB and embedded python and have been attempting to set up SPI for a hobbyist application. I performed a simple loopback test(connecting D1 and D0 - code below) but only read a list of 255’s back instead of the correct data. I am relatively sure that all of the necessary software is installed to run the SPI and can’t quite figure out what I could be doing wrong, any help is much appreciated. Thank you for your time!

from Adafruit_BBIO.SPI import SPI

spi = SPI(0,0)


print spi.xfer2([32, 11, 110, 22, 220])