python: Refactor aosp.py and chromium.py
aosp.py: Fix issue to flash image