pk files need to be written in binary mode to avoid import issues with extractFormants