Python code for solving the resistance between any 2 points on a cube of resistors.