Ok with tuple (anyway, main fix was for `%`), but this statement better to rewrite with `if` check and raising `TypeError` since assertions could be [disabled][1] via command line argument or environment variable.

[1]: http://docs.python.org/3/reference/simple_stmts.html#assert