compatibility with python 3.x

use one parameter in matchesNode function instead of tuple parameter
Merge pull request #167 from ivantchomgue/patch-3

compatibility with python 3.x