Python Associative Array Check If Key Exists