Python script to collect data from meter