結果 : pass file handle to function python