Reworking file handling and error cases of aggregateFeeds.py