Pixhawk telemetry log

can anyone help me to read pixhawk data such as depth, heading using python script?

Read this thread Heading & Depth data to surface?