Returns X11 Keymap as a list of integers

def get_keymap(self):
        """Returns X11 Keymap as a list of integers"""
        self._x11.XQueryKeymap(self._display, self._raw_keymap)

        try:
            keyboard = [ord(byte) for byte in self._raw_keymap]
        except TypeError:
            return None

        return keyboard