<s> import sys <EOL> import json <EOL> import os <EOL> print sys . argv <EOL> try : <EOL> tmp_json_file = open ( sys . argv [ <NUM_LIT:1> ] ) <EOL> json_data = json . load ( tmp_json_file ) <EOL> tmp_json_file . close ( ) <EOL> json_file = open ( sys . argv [ <NUM_LIT:2> ] , '<STR_LIT:wb>' ) <EOL> json_file . write ( open ( sys . argv [ <NUM_LIT:1> ] , '<STR_LIT:rb>' , <NUM_LIT:1> ) . read ( ) ) <EOL> json_file . close ( ) <EOL> print '<STR_LIT>' <EOL> except Exception , e : <EOL> print e <EOL> print '<STR_LIT>' <EOL> os . remove ( sys . argv [ <NUM_LIT:1> ] ) </s>
