working python script for USB transfer