Made python 3.3 compatible