def b64_string(input_string):
 return b64encode(input_string.encode('utf-8')).decode('utf-8')

def b64_string ( input_string ) : return b64encode ( input_string . encode ( 'utf-8' ) ) . decode ( 'utf-8' )
return a base64 encoded string from input_string .