Fix segfault when file has not content.
Use Py_BuildValue to build tuple.