generator_solution.py streamlined two functions including everythirdpowerofthree()