Thanks. Reinstalling Python3 as you said has made it compile now. I didn't think that would be the issue though as I said that it compiled the pokeemerald expansion before I started editing it so I'm not sure how that happened. Either way, it works now.
The link for the Teachable learnset...