Silence py3 warnings about files left open