Assuming you already are inside a virtualenv:
pip install ziggo_mediabox_xl
Create a new virtualenv (if you are not already in one) and install the necessary packages:
git clone https://github.com/b10m/ziggo_mediabox_xl.git
cd ziggo_mediabox_xl
mkvirtualenv ziggo_mediabox_xl
pip install -r requirements.txt
This quick example will connect to the IP address listed, verify the box is turned on and sends NUM_3, NUM_0, and NUM_2 to the device. This will result in the same action as pressing 302 on your remote control (the Disney Jr. channel will be selected).
from ziggo_mediabox_xl import ZiggoMediaboxXL
box = ZiggoMediaboxXL('aaa.bbb.ccc.ddd')
if box.turned_on():
box.send_keys(['NUM_3', 'NUM_0', 'NUM_2'])