An energy monitoring using python