Yes That is,
you just need to concatenate code 64 to code 65 to turn on and change the order to turn off like this:
TURN ON
e90a4200ef0909160916160916091609091616090916160909161609160916090916160916091609091616090916091609161609091609161609160916091609160916090916e90a4200ee0916090916091616090916091609161609160916090916091609161609160909160916160916091609160916090916091609161609091616090916160909160916
TURN OFF
e90a4200ee0916090916091616090916091609161609160916090916091609161609160909160916160916091609160916090916091609161609091616090916160909160916e90a4200ef0909160916160916091609091616090916160909161609160916090916160916091609091616090916091609161609091609161609160916091609160916090916
now you put one of this values in a variable like:
myhex = “e90a4200e…”
and then you pass this variable to this command:
device.send_data(binascii.unhexlify(myhex))
get this code here
in the line 17 has a variable “codeData” put one of the values in this variable,
and the line 21 change the command to this one:
device.send_data(binascii.unhexlify(codeData))
ps.: to use this binascii.unhexlify you will need to import this library in the top of the file
import binascii