Uploaded an example code to calculate powerspectrum of time-sliced XIS data to this gist entry. Enjoy.
This script generates PDF files something like the following. The x axis labels are only displayed for the bottom panel. In QDP, you can turn on/off the axis labels by doing like:
lab nx off lab ny off