pydgt Takes device as a parameter