Fixed python 3.4 compatibility