Minor Py3 tweaks (untested).  Add ability to enumerate inputs/outputs.