Fix compatibility with python 3.3 #169