Version for python 3.x

Changes made in order to run server with python 3.x