Python 3 compatible
Python 3: Compatibility changes

Fixed errors due to dict.has_key removed in Python3.