python: Change target-device-type to target-type