[PATCH 8/9] tuna: Use open instead of file for python3