It looks like you have a circular import which doesn’t work in python3
Here are some related questions that might help you solve the problem.