You can pass "--source <dev>" parameter and the <dev> device will be used for every random operations. So just use "./spw.py --source /dev/ttyACM0" and there you go.