mkbootimg: Switch to argparse and fix pylint and pep8 errors
unpackbootimg: Fix pylint and pep8 errors
unlokibootimg: Fix pylint and pep8 errors
mkbootimg: Add remaining struct.pack statements into try-catch blocks
bootimage.py: Use proper exception handling
ramdisk.py: Catch all exceptions from ramdisk patching here