Transforming legacy COBOL and Java code to Python with AI