I have a dot-matrix printer LX-300 connected to my computer through the network. How do I send a raw string with ESCP characters directly to my printer in Python?

The computer is connected to the printer through another computer. I need to send a raw string because LX-300 image printing result is blurry.