updated flash.py based on code review. run_flash returns assembly file path