Bridging the Gap: Leveraging AI Tools to Lower Barriers for Historians Learning to Code