Python Math Power Function