Python 3 compatibility in gen-descriptor-tests.py 

This file is using `#!/usr/bin/env python` so it cause build fault for people who use python3 by default, this request fixes it.

Works well on python2 also.

`print X` -> `print (X)`

floor division -> `//`