checking if a key is in a dict is done with 'key in dict' not 'hasattr(dict, key)'
Merge pull request #246 from trefis/master

Error in OmniCompleter