Updated Python script with readings array.