def options_dictionary_to_string(options_dictionary):
    ops = []
    for (key, value) in sorted(options_dictionary.iteritems()):
        ops.append(key)
        ops.append(value)
    ops_string = "\x00".join(ops)
    ops_string +=  "\x00" if ops else ""
    return ops_string
L{Response._bodyDataReceived} raises L{RuntimeError} if called after
dataset/ETHPy150Open dropbox/emmer/emmer/packets.py/options_dictionary_to_string--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/ResponseTests.test_bodyDataReceivedAfterDeliveryFails