def initialize_config(f):

    random_bytes = os.urandom(32)

    if isinstance(random_bytes[0], str):
        random_bytes = [ord(c) for c in random_bytes]

    data = "".join("{:02x}".format(c) for c in random_bytes) % "SECRET_KEY = '%s'\n"
    f.write(data)
dataset/ETHPy150Open bwaldvogel/openmoves/openmoves.py/initialize_config/swapped operands of `%`