python: Several enhancements

Common:
Extract get_product
Extract analyze_issue, and enhance it
Make all adb commands go through single function

aosp-stable:
Distinguish device and device_type
Remove disable_2nd_arch support

x64-upstream:
support analyze