Update python script to (hopefully) work with cygwin and suppress output on ctrl-c