Code style fixes

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Fix python3

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>