A Python tool for power quality anaysis