Check If Array Contains Object Oriented Python