def check_program(prog):
 tmp = init_app('which {0}'.format(prog))
 if ((len(tmp) > 0) and ('/' in tmp)):
  return True
 else:
  return False

def check_program ( prog ) : tmp = init_app ( 'which {0}' . format ( prog ) ) if ( ( len ( tmp ) > 0 ) and ( '/' in tmp ) ) : return True else : return False
check if program is installed and pathed properly .