update to run this script in Blender > 2.68