Python 3 compatibility in gen-descriptor-tests.py 

Works well on python2 also.

`print X` -> `print (X)`

floor division -> `//`