Python 3 Write Function As Power