Hmmm - I just ran your script with 3.54 and no problems ... are you using some kind of funky editor or something ?

Are you calling this script from another script - if yes - let's see the other script ...

Shawn.