SPI communication with Xbee s2C using python

I have been working on Xbee s2C in API configuration over UART using python script. But, recently I want to switch from UART to SPI for the serial communication between Xbee and microcontroller. I use spidev python module for the start for SPI communication. Yet, when I transfer bytearray with API frame structure I am not getting the expected result to my microcontroller. What can be done? Can anybody suggest any python library for particular SPI communication over microcontroller?


Looks like there is some info at http://electronics.stackexchange.com/questions/283943/using-xbee-package-with-spidev-python about it.