Filter bubble simulation with Python