How To Handle Empty Files Python