Assuming you've already done something like:
python3 -m venv photons
./photons/bin/python -m pip install lifx-photons-core
Run this for the raw values:
./photons/bin/python print_bytes.py 2400001400036500d073d563525a00004c49465856320401002302dc710000002d000000
And this for the more "human" values:
./photons/bin/python print_values.py 2400001400036500d073d563525a00004c49465856320401002302dc710000002d000000
Note that the 0s and 1s are probably not in the order you expect. The LIFX protocol is big bit endian and little byte endian, but photons presents the 0s and 1s with little bit endian and little byte endian. So to send the 0s and 1s you'd have to reverse the bits in each byte like so:
b = "001010101010101010101...."
converted = []
for i in range(0, len(b), 8):
converted.append("".join(reversed(b[i:i+8])))
to_send = "".join(converted)