Feed Generator in Python