Replaced deprecated Python constructs (like has_key and the old form of raise) with current forms.