title: .dat file in python
body: <p>I'am doing a project in python using OpenCV. I have to store a large amount of integer data(features of images in the database) in a separate file. I can use .txt file but it stores integer values as strings. 
  Is there any way that I can store integer values directly as integers in python like .dat file in MATLAB.?</p>