Python Cube Root Function Transformation