Added missing subprocess import
Correct CalledProcessError to subprocess.CalledProcessError