Change "has_key" for "in" for porting to Python3.