def get_arch(run_function=run):
 arch = run_function('/bin/uname -m').stdout.rstrip()
 if re.match('i\\d86$', arch):
  arch = 'i386'
 return arch

def get_arch ( run_function = run ) : arch = run_function ( '/bin/uname -m' ) . stdout . rstrip ( ) if re . match ( 'i\\d86$' , arch ) : arch = 'i386' return arch
determine the architecture of the guest .