Having Issue Creating Custom Field Output Using Abaqus Python

I am currently creating a script that will calculate custom field output for my strain.  If I use the Abaqus CAE without the GUI, I can run the following script, but my goal is to avoid use of any licenses while operating the following script. According to the Abaqus scripting user manual the sqrt and power function is applicable in abaqus python, but it only works in abaqus CAE/Viewer for Abaqus 2024 from what I have seen so far.  If I run it in the abaqus command prompt or a terminal using "abaqus python Test.py" command, I get an error related to the sqrt and power function not being recognized by abaqus python.  This is part of my script I am having issues with.

 

from abaqusConstants import *

import odbAccess

def generate_VM_field(totalStrainField, currentFrame, frame_description):

    S1 = currentFrame.fieldOutputs['LE'].getScalarField(invariant=MAX_PRINCIPAL)

    S2 = currentFrame.fieldOutputs['LE'].getScalarField(invariant=MID_PRINCIPAL)

    new_strain =  sqrt(power(S1+S2,2))

    currentFrame.FieldOutput(name='SomeStrain', description='new custom field output', field=new_strain)

    return None