autoidentify.py: Updated with new API.