Various formulas and functions for Electricity in Python 3