Update ahps.py