make python snippet file reading more efficient
change ftdetect to use bufread/new