Python3

Make python 3.x and 2.x compatible version in single code base.