So when I print the Counter (from collections import Counter) to a file I always get this the literal Counter ({\'Foo\': 12})
from collections import Counter
Counter ({\'Foo\': 12})
Is there anyw
You could change the __str__ method of the counter class by going into the source code for the collections module, but I wouldn't suggest that as that permanently modifies it. Maybe just changing what you print would be more beneficial?