packaging: solve python output oddness

For some strange reason python loses sync with its handles when mixed
flush/fileno commands are used.

Effected command is 'print "something",', however when replaced with
sys.stdout.write("something") it works properly.

Steps to reproduce: unknown.

Solution: do not use print for formatted output.

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