Python3 syntax and unicode/str API support

Signed-off-by: Balthazar Rouberol <balthazar.rouberol@mapado.com>