in the new blender "as" is a keaword an can not anymore be used as a variable...

use an older blender version...