Add hint typing to the code and use a tool like mypy to analyze it, this can improve development and also prevent bugs.