def __init__(self, profile=None, magic_encode_args=None, **kwargs):
self.profile = get_profile(profile)<EOL>self.magic = MagicEncode(self, **(magic_encode_args or {}))<EOL>
Initialize ESCPOS Printer

        :param profile: Printer profile