implemented GetNI() in Python, added Python unit tests for TNodeI and graph IO