<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def printrec(recst):
 """ Pretty-printing rtsp strings """

    try:
        recst = recst.decode('UTF-8')
    except AttributeError:
        pass
    recs=[ x for x in recst.split('\r\n') if x ]
    for rec in recs:
        print(rec)
    print("\n")