przywileje mysql tkaniny python

Próbuję ustawić uprawnienia użytkownika mysql za pomocą tkaniny.

run("mysql -u %s -p%s -e 'grant all on %s.* to '%s'@'localhost' identified by 'PASSWORD'" % (user, dbpasswd, account))

Błąd

TypeError: not enough arguments for format string

Dowolny pomysł ? Wielkie dzięki !

run('mysql -u %s -p%s -e "grant all on %s.* to '%s\'@\'localhost' identified by 'PASSWORD'"' % (user, dbpasswd, account, account))

SyntaxError: unexpected character after line continuation character

questionAnswers(1)

yourAnswerToTheQuestion