Check If Element Exists In Dictionary Python