Xrf fit

This needs the `from __future__ ...` imports (see other files in repo)