translate python code to shell code

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

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

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

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