The kind attribute was added to the Constant expression in AST in Python 3.8. See https://bugs.python.org/issue36280.
That means that in Python 3.7's ast module, Constants never have a kind, so this line always errors.
While unparse has made it in to Python 3.9's ast module, I'd really like to use astunparse as a sort of backport. It's still useful while Python 3.7 and 3.8 are in heavy use!