Automated code conversion tool