workaround fwrite/fat bug only write 400 bytes at a time and close/reopen file eachtime
cleaned up smoothie-upload.py