Change item.file to item.get_file() per IA API change