remove fin fout
use 'print' to replace 'write',use '\t' to replace 'tab'