Fix python3 compitibility and restore requirements.

Signed-off-by: Victor Berger <victor.berger@m4x.org>