This script is not a fully functional working script. Rather, it is a template for bootstrapping an ArcGIS Python Toolbox implementing what I outline at:
http://joelmccune.com/lessons-learned-and-ideas-for-python-toolbox-coding/
If you are planning on using PyScripter set up to author ArcGIS Python Toolboxes, this posting discusses getting PyScripter to recognize *.pyt files and how to create your own templates:
http://joelmccune.com/set-up-pyscripter-to-create-arcgis-python-toolboxes/