small revision on xbams2APS.py