The dat files are simply binary files. I used the pickle module for Python to store and read them.
ah ok thanks