fixed python compatibility bugs in nonprojectivedependencyparser
some syntax fixes
Merge pull request #637 from jskda/pull_request.622

fixed python compatibility bugs in nonprojectivedependencyparser