port to python3

fix string.maketrans which is not supported in python3

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
port to python3

None is not comparable with string in python3

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>