core: avoid pyflakes error with python2

Change-Id: Ic569d4a654341875a129e7e8599c311746f6e828
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>