Update sandbox.py

block write file function