Add weight parameter for matching
Remove '*,' (which is python3 to force named parameters)

This is not valid python2. For some reason, it worked with cython2.