could be more general:

def cmd_required(cmd):
    if not cmd_exists("cmd"):
        print "Error: This script depends on '" + cmd + "'."
        ....
        sys.exit(1)