Vertex Animation Script for Blender 3D Users

I have a cube that animates a short distance along the y-axis, nothing complex. The normals have 8 colors (one for each vertex I assume). The animation works, but the shading is clearly wrong. Perhaps I missed a step? I think I have all the proper settings applied to the normal texture.