Python 3 migration

Hi,

I made some changes in order to use python3 as it is or will be the default python version in Linux distributions.

I tagged it 2.0 to make difference between these and the previous python2 code release

Cheers,