python script to generate & display_scan_code