function used in abaqus scripting

Hi 

i am new for Abaqus scripting. i am writing a program. it has several locations, where same calculation if done. then i thought to call function for this matter. since i am not aware of this, i tried to write a small program as follows.

cu=0.0

for p in range (10):

a = curing()

print 'completed'

print a

def curing():

cu=cu+10

i expected answer as 110. but it gives me lot of error. anybody could help me to correct this small function. then i can evolve this to advance things.