Python Check If Object Exists In Array