mkbootimg: Make unpack_bootimg py3 compatible

* Convert bytes to strings so that we don't print NULL bytes
* Make sure get_number_of_pages() returns int

Test: Run with py2 and py3 and verify same output
Change-Id: I4b29e57c3570efc53bddc4d95739f1b4330b7495
1 file changed