def _format_unicode_password(pwd):
 return '"{0}"'.format(pwd).encode('utf-16-le')

def _format_unicode_password ( pwd ) : return '"{0}"' . format ( pwd ) . encode ( 'utf-16-le' )
formats a string per microsoft ad password specifications .