bug fix in getNodes() and getLabels()
Merge pull request #7 from so5/python_api_bugfix

bug fix in getNodes() and getLabels()