How can we read the a.out file in python

I have an a.out file in which have some data. I want to read that file in Python.