packaging: improve python check script

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