packaging: build: perform python validations during build

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