Works with python2

* Also / is not // anymore.
* Make dict at least a bit readable.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>