Support new format of internal list and xml.

I changed infomanager.py to support new format.

Please review this change.