Use python2 for flash_detect.
Integrated patches from AUR.

Integrated patches maintained downstream.