1import os 2import sys 3import subprocess 4os.close(0) 5os.close(1) 6os.close(2) 7exit_code = subprocess.call(sys.argv[1:], shell=False) 8sys.exit(exit_code) 9