I have a simple condition where i need to check if a dict value contains say [Complted] in a particular key. 
example :
'Events': [
                {
                    'Code': 'instance-reboot'|'system-reboot'|'system-maintenance'|'instance-retirement'|'instance-stop',
                    'Description': 'string',
                    'NotBefore': datetime(2015, 1, 1),
                    'NotAfter': datetime(2015, 1, 1)
                },
            ],
I need to check if the Description key contains [Complted] in it at starting. i.e 
'Descripton': '[Completed] The instance is running on degraded hardware'
How can i do so ? I am looking for something like
if inst ['Events'][0]['Code'] == "instance-stop":
      if inst ['Events'][0]['Description'] consists   '[Completed]":
              print "Nothing to do here"
 
     
     
    