結果 : pass file pointer to function python