fix python2, part 1

Signed-off-by: Kwpolska <kwpolska@gmail.com>