Update appdatainfo.py

There is a bug in this code...