Port of feedgenerator to Python 3