Python script to parse AP sample data.