Python-cec allows you to control your TV, reciever and other CEC-compliant
HDMI devices from a python script on a computer. 

WWW: https://github.com/trainman419/python-cec
