Python Check If Key Is In Dictionary