On a new windows machine the code did not work because the USB receiver for uMyo did not have the right driver. It showed up as:
'''CP2102N USB to UART Bridge Controller'''
The fix was to download the driver from here: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
After the install the device worked flawlessly.