Fixed the wrong parameter list of subprocess.check_output calls.
Panorama is generated successfully now.