make bootzip: convert bash to python

Change-Id: Ie5d3e6d07df7f46df3717b9203b6f70edf208cb1

Conflicts:
	core/Makefile
	tools/releasetools/boot_flash_from_image