Fix Magic import errors
Merge branch 'master' of https://github.com/raymondzeng/tortoise