First changes to prepare to python 3.4

It was tested (a simple test) with python 3.4.1 and 2.7.5+