Fix compilation for python 3.4

Signed-off-by: Spyros Stathopoulos <foucault.online@gmail.com>