fix declarative styles examples re: imports
fix declarative styles examples re: imports

many missing imports and mis-imports, also use
list[] for typing.

Change-Id: Idd9140a89eb421c4b80503639a582b96ba66c601
References: #8634

zzzeek/sqlalchemy,sqlalchemy/sqlalchemy