Object Recognition Using Python Dictionaries Multiple Keys