Changed print by self.stdout.write in topics_anomalies command