Debugged xrfi_simple.py