Dlink dlink router with python module for connecting to dlink router via telnet and send command you can find the example from app.py configuration file at the settings.py