from @yangshen16
I would recommend to use "isort" (https://pypi.org/project/isort/) and "black" (https://pypi.org/project/black/) to format the code, which will increase the readability. If you are using VSCode, it also has an option to "format on save" with "black".