def __init__(self, host, mac = None):
self.host = host<EOL>if not mac:<EOL><INDENT>(self._mac, self._mac_reversed) = self._discover_mac()<EOL><DEDENT>else:<EOL><INDENT>if type(mac) is str:<EOL><INDENT>self._mac = binascii.a2b_hex('<STR_LIT>'.join(mac.split('<STR_LIT::>')))<EOL><DEDENT>else:<EOL><INDENT>self._mac = mac<EOL><DEDENT>ba = bytearray(self._mac)<EOL>ba.reverse()<EOL>self._mac_reversed = bytes(ba)<EOL><DEDENT>self._subscribe()<EOL>
Initialize S20 object.

        :param host: IP or hostname of device.