import base64
import os

script_b64 = b"""
[encoded data, 6083 characters]
dWxseSIpCmVsc2U6CiAgICBwcmludCgiT2xkIGJsb2NrIG5vdCBmb3VuZCEiKQ=="""

with open("do_patch.py", "w") as f:
    f.write(base64.b64decode(script_b64).decode('utf-8'))
