cpp_standalone/device.py from devices2

Previous commit was a mistake