def get_item(self, key):
keys = list(self.keys())<EOL>if not key in keys:<EOL><INDENT>self.print_message("<STR_LIT>"+str(key)+"<STR_LIT>")<EOL>return None<EOL><DEDENT>try:<EOL><INDENT>x = eval(self.get_value(<NUM_LIT:1>,keys.index(key)))<EOL>return x<EOL><DEDENT>except:<EOL><INDENT>self.print_message("<STR_LIT>"+str(self.get_value(<NUM_LIT:1>,keys.index(key)))+"<STR_LIT>")<EOL>return None<EOL><DEDENT>
Returns the value associated with the key.