code: def printrec(recst):
      
      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")
docs: Pretty-printing rtsp strings