Python 3 doesn't have string.lower.
Python 3 doesn't have has_key.