Converted a bit of the top of the script to the new niflib to give Brandano an idea of how to do it by looking at the diff.  Feel free to revert this.
Converted a bit of the top of the script to the new niflib to give Brandano an idea of how to do it by looking at the diff.  Feel free to revert this.

amorilia/blender_nif_plugin,nightstrike/blender_nif_plugin,nightstrike/blender_nif_plugin,amorilia/blender_nif_plugin