AST tooling is great for porting code and code quality checks. Here are a couple of examples in python.