Update for Python 3.x

Fix of syntax changes between Python 2.x and 3.x!