Could you please someone help me,I have get below output to variable and read their some information and store it to data base. Seems it take as single line, I want to divide to lines and print line by line.

OUTPUT of the command

```
kafka-mirror              Running (9)  on frun4316                                                             TIME            PID          Num.Streams
=======================================================================================================================================================
billing_-mainframe_-db2prod_-topic                                                                               Mar08           565
snap_-arep_-b2bowner_-topic,snap_-report_-b2bowner_-topic,snap_-arep_-isnapownera_-topic,snap_-report_-isnapownera_-topic Mar08           1024
meds_-mlinterview_-hiss_-topic,meds_-mlinterview_-dbo_-topic                                                     Mar08           1902
insite_-c1reppd_-insiteownera_-topic,insite_-cireprod_-insiteowner_-topic                                        Mar15           19386
atlas_-clmprgg_-geico_claimcenter_-topic                                                                         Mar15           22222            2
ecams_-ecamsdatastore_-ecamsmain_-topic                                                                          Mar09           28770
ies_-ies_-dbo_-topic                                                                                             Mar08           31651
ims_-ias_stage_-dbo_-topic                                                                                       Mar08           32109
tmi_-transactionalemail_-dbo_-topic                                                                              Mar08           32567

```

Code

```
def Kafka_mirror(envr,server):
        out = subprocess.Popen("/dsapps/admin/edp/scripts/edp-kafka-mirror-list all -e %s -h %s" % (envr,server), stdout=subprocess.PIPE, shell=True).communicate()
        return out

def mirrors_to_db(envr,server):

        for line in Kafka_mirror(envr,server):
                for i in line:
                        print(i)

```

Output of the script

```
k
a
f
k
a
-
m
i
r
r
o
r

```