This is a short script that allows you to control a Roku from your keyboard. I'm not sure what will happen if there is more than one Roku device in the network. It will probably randomly choose one when discovering a device.
$ pip install -r requirements.txt
$ python roku.py