Trying to print a label using zebra ZP 505.

I am trying to print a shipping label from fedex using zebra ZP 505 thermal printer connected via USB with my system.

My codebase is in python backend and I want to give the print command from application. Can you suggest how to connect with printer and send base64 image to printer programmatically.