The method of creating command for Rhino using the legacy method linked about is not supported in Python 3. You can still use that with IronPython but you can not import python 3 libraries like numpy
Take a look at this post on creating Rhino plugins with commands in the new script editor that supports new languages