A Python tool for power quality analysis