Fix more python3 incompatibilities

Signed-off-by: Justin Lecher <jlec@gentoo.org>