Correction to xapi.py, wrong logger being used in main