replace a python file with a sed+awk sequence

Signed-off-by: Mattias Andrée <maandree@operamail.com>
update makefile

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add missing deps

Signed-off-by: Mattias Andrée <maandree@operamail.com>