Binary Image Classification Using Python Dictionaries