Close reducer input files
Close stdin file immediately in parent process
Use generators when partitioning local and remote files
Use namedtuple for input file struct instead of dict
Use generator for list of remote files