import base64, sys, os b=sys.stdin.read().strip() out=os.path.join(os.path.dirname(os.path.abspath(__file__)),"advance_all_pages.py") with open(out,"wb") as fh: fh.write(base64.b64decode(b)) print("Written to",out)