First download the linear-color-transfer.py, and lum-transfer.py scripts from Neural-Tools:
wget -c https://raw.githubusercontent.com/ProGamerGov/Neural-Tools/master/linear-color-transfer.py
wget -c https://raw.githubusercontent.com/ProGamerGov/Neural-Tools/master/lum-transfer.py