Python Check if a key exists in JSON