def save_tag_dict(filename, tag_dict):
    ordered_keys = sorted(tag_dict, key=tag_dict.get)
    text = '\n'.join(ordered_keys)
    with open(filename, 'wb') as f:
        f.write(text.encode('utf-8'))
The middleware will not override a "strict-transport-security" header
dataset/ETHPy150Open erickrf/nlpnet/nlpnet/reader.py/save_tag_dict--crossover with--dataset/ETHPy150Open django/django/tests/middleware/test_security.py/SecurityMiddlewareTest.test_sts_already_present