fix issues to  work in Python 3.3.2

Little issue to python 3 compatibility