PyNDN: Small change and installing API

Refs #1010 (http://redmine.named-data.net/issues/1010)
diff --git a/PyNDN/Name.py b/PyNDN/Name.py
index 9112f0d..05c34b0 100644
--- a/PyNDN/Name.py
+++ b/PyNDN/Name.py
@@ -40,11 +40,10 @@
 
     @staticmethod
     def fromWire (wire):
-        return ns.ndnSIM.ndn.Wire.ToName (wire)
+        return Name (name = ns.ndnSIM.ndn.Wire.ToName (wire))
 
-    @staticmethod
-    def toWire (name):
-        return ns.ndnSIM.ndn.Wire.FromName (name)
+    def toWire (self):
+        return ns.ndnSIM.ndn.Wire.FromName (self._name)
     
     def __getattr__ (self, name):
         return self._name.__getattribute__ (name)
diff --git a/wscript b/wscript
index b48adf7..c0dbf11 100644
--- a/wscript
+++ b/wscript
@@ -193,6 +193,10 @@
 
     bld.ns3_python_bindings()
 
+    bld (features = "pyext",
+         source = bld.path.ant_glob (["PyNDN/**/*.py"]),
+         install_from = "."
+         )
 
 @TaskGen.feature('ns3fullmoduleheaders')
 @TaskGen.after_method('process_rule')