BF: apparently, 'has_key(...)' was removed from dict in python3