Convert config.py to config.yaml

Plus other bug fixes.  Getting low acceptance fractions on XMM102.
Need to do additional debugging.