python script and input/output files