Xrf fit

This would be better as `background = np.array(spectrum)` which makes a copy and ensures that the input is an array (so passing in a list will work).