fix(python): use standard dict/list type annotation

Since Python 3.9 list/dict can be used as type hint.
2 jobs for typing_improvements in 3 minutes and 21 seconds (queued for 1 second)