Works for 3.8, 3.10

I know you don't use or maintain this, but here's the latest updates to keep the extension working.