how to document database architecture python