ADDED:
PlotXim.py: Reads in STXM images, maps and stacks.  In the case of images, it generates a png for it with the energy in the title.  For Maps, it makes an OD.  For Stacks it makes a sum image.  In all cases it outputs a tif (or tif stack) of the raw data that you can drag and drop onto ImageJ.  It also outputs the energy axis into a one column file for plotting spectra later.  Glob functionality allows it to process a whole run in a few minutes.