'Turn the string data, into a list of bits (1, 0)\'s'

def __String_to_BitList(self, data):

    if (_pythonMajorVersion < 3):
        data = [ord(c) for c in data]
    l = (len(data) * 8)
    result = ([0] * l)
    pos = 0
    for ch in data:
        i = 7
        while (i >= 0):
            if ((ch & (1 << i)) != 0):
                result[pos] = 1
            else:
                result[pos] = 0
            pos += 1
            i -= 1
    return result
