#NEWLINE# def guest_type( s , mon ) : #NEWLINE# #INDENT# for c in s : #NEWLINE# #INDENT# if ( c in string . ascii_uppercase ) : #NEWLINE# #INDENT# key = ( 'shift-' + c . lower ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# key = keymap . get ( c , c ) #NEWLINE# #UNINDENT# mon_cmd ( 'sendkey {0}\n' . format ( key ) , mon ) #NEWLINE# time . sleep ( 0.1 )