fixes #812, pylint errorcheck

Signed-off-by: Werner Macho <werner.macho@gmail.com>