Ported python example to python 3.x

Appears to work on python2.6 to 3.3
Ported xraylib CLI to Python 3.x

with backwards compatibility up to version 2.6
Had to drop support for 2.5 though