3.8 support

Not sure if it's 100% compatible but it works so far.